This commit is contained in:
Alexis Lina 2025-01-17 16:41:07 +00:00 committed by GitHub
commit 6d439a12e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}