X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/97c31661edb100fefcf20383f057e25edd7f4e11..fc9abd5810adaa5ec755662dc98e472c797c47cb:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index f092e161..b0d3aa5b 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -2836,7 +2836,7 @@ cleanup(int signo _U_) static void child_cleanup(int signo _U_) { - wait(NULL); + while (waitpid(-1, NULL, WNOHANG) >= 0); } #endif /* HAVE_FORK && HAVE_VFORK */