We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0d3ab5 commit 19ea1bfCopy full SHA for 19ea1bf
src/utils/remote.c
@@ -70,9 +70,16 @@ static void kill_child(void)
70
71
void wait_ssh(void)
72
{
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
+#ifndef WIN32
79
int status;
80
waitpid(child_pid, &status, 0);
81
elog(LOG, "SSH process %d is terminated with status %d", child_pid, status);
82
+#endif
83
}
84
85
#ifdef WIN32
0 commit comments