Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19ea1bf

Browse files
committed
Eliminate waitpid for Windows
1 parentc0d3ab5 commit19ea1bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/utils/remote.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,16 @@ static void kill_child(void)
7070

7171
voidwait_ssh(void)
7272
{
73+
/*
74+
* We need to wait termination of SSH process to eliminate zombies.
75+
* There is no waitpid() function at Windows but there are no zombie processes caused by lack of wait/waitpid.
76+
* So just disable waitpid for Windows.
77+
*/
78+
#ifndefWIN32
7379
intstatus;
7480
waitpid(child_pid,&status,0);
7581
elog(LOG,"SSH process %d is terminated with status %d",child_pid,status);
82+
#endif
7683
}
7784

7885
#ifdefWIN32

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp