From 2da54a029210e50e993ecb400cc245fa936bc422 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 7 Oct 2021 04:09:13 +0200 Subject: 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 --- passt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'passt.c') diff --git a/passt.c b/passt.c index 26e06d4..e0519f6 100644 --- a/passt.c +++ b/passt.c @@ -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); } /** -- cgit v1.2.3