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:
parent
9a175cc2ce
commit
2da54a0292
1 changed files with 1 additions and 0 deletions
1
passt.c
1
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);
|
||||||
|
waitid(P_ALL, 0, NULL, WEXITED | WNOHANG);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue