1
0
mirror of https://passt.top/passt synced 2024-07-01 23:42:41 +00:00

pasta: Add second waitid() in pasta_child_handler()

We usually have up to one additional child exiting while we receive
a SIGCHLD, instead of complicating this with tracking PIDs, just
add a second waitid() call.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-07 04:09:13 +02:00
parent 9a175cc2ce
commit 2da54a0292

View File

@ -238,6 +238,7 @@ static void pasta_child_handler(int signal)
}
waitid(P_ALL, 0, NULL, WEXITED | WNOHANG);
waitid(P_ALL, 0, NULL, WEXITED | WNOHANG);
}
/**