aboutgitcodebugslistschat
path: root/passt.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-07 04:09:13 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-07 04:12:17 +0200
commit2da54a029210e50e993ecb400cc245fa936bc422 (patch)
tree8cf81e5a0e68bdf6ff3b5cc10176251240c19bea /passt.c
parent9a175cc2cea75b98fc3c20381f58dcabf24ef529 (diff)
downloadpasst-2da54a029210e50e993ecb400cc245fa936bc422.tar
passt-2da54a029210e50e993ecb400cc245fa936bc422.tar.gz
passt-2da54a029210e50e993ecb400cc245fa936bc422.tar.bz2
passt-2da54a029210e50e993ecb400cc245fa936bc422.tar.lz
passt-2da54a029210e50e993ecb400cc245fa936bc422.tar.xz
passt-2da54a029210e50e993ecb400cc245fa936bc422.tar.zst
passt-2da54a029210e50e993ecb400cc245fa936bc422.zip
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>
Diffstat (limited to 'passt.c')
-rw-r--r--passt.c1
1 files changed, 1 insertions, 0 deletions
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);
}
/**