X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/63b104dc5b765f14404449d52a4d307fa17089fa..dd7d97a439da4d31ba8c9295b308fe7f183ab35e:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index 73e09719..515edf5d 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -2727,7 +2727,7 @@ DIAG_ON_ASSIGN_ENUM free(cmdbuf); pcap_freecode(&fcode); - exit_tcpdump(status == -1 ? 1 : 0); + exit_tcpdump(status == -1 ? S_ERR_HOST_PROGRAM : S_SUCCESS); } /* @@ -2743,7 +2743,14 @@ static void memset(&new, 0, sizeof(new)); new.sa_handler = func; - if (sig == SIGCHLD) + if ((sig == SIGCHLD) +# ifdef SIGNAL_REQ_INFO + || (sig == SIGNAL_REQ_INFO) +# endif +# ifdef SIGNAL_FLUSH_PCAP + || (sig == SIGNAL_FLUSH_PCAP) +# endif + ) new.sa_flags = SA_RESTART; if (sigaction(sig, &new, &old) < 0) return (SIG_ERR);