Merge d973d81960
into 5cb74797fe
This commit is contained in:
commit
6d439a12e6
|
@ -41,8 +41,12 @@
|
|||
static void handle_SIGCHLD(int sig)
|
||||
{
|
||||
int status = 0;
|
||||
int pid = 0;
|
||||
|
||||
do {
|
||||
pid = waitpid(-1, &status, WNOHANG);
|
||||
} while (pid > 0);
|
||||
|
||||
wait(&status);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue