Merge d973d8196046b120233cec1d03bead91294a97a3 into 5e82e4f305dbf3760b6f6e3ba8fb70c3de30a6b9

This commit is contained in:
Alexis Lina 2025-01-31 16:48:31 +00:00 committed by GitHub
commit 0424e1fe8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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