mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-24 11:46:31 +02:00
Eliminate waitpid for Windows
This commit is contained in:
parent
c0d3ab5456
commit
19ea1bf5dc
@ -70,9 +70,16 @@ static void kill_child(void)
|
|||||||
|
|
||||||
void wait_ssh(void)
|
void wait_ssh(void)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* We need to wait termination of SSH process to eliminate zombies.
|
||||||
|
* There is no waitpid() function at Windows but there are no zombie processes caused by lack of wait/waitpid.
|
||||||
|
* So just disable waitpid for Windows.
|
||||||
|
*/
|
||||||
|
#ifndef WIN32
|
||||||
int status;
|
int status;
|
||||||
waitpid(child_pid, &status, 0);
|
waitpid(child_pid, &status, 0);
|
||||||
elog(LOG, "SSH process %d is terminated with status %d", child_pid, status);
|
elog(LOG, "SSH process %d is terminated with status %d", child_pid, status);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user