X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/10b807441e79f9c9e557bbb44ae0ecfe01ed5151..fc9abd5810adaa5ec755662dc98e472c797c47cb:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index 72624540..b0d3aa5b 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -38,7 +38,7 @@ #endif /* - * Some older versions of Mac OS X may ship pcap.h from libpcap 0.6 with a + * Some older versions of Mac OS X ship pcap.h from libpcap 0.6 with a * libpcap based on 0.8. That means it has pcap_findalldevs() but the * header doesn't define pcap_if_t, meaning that we can't actually *use* * pcap_findalldevs(). @@ -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 */