X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/8f34a01034446e63b7ceec8267f6a1e04b167cbf..refs/pull/433/head:/setsignal.c diff --git a/setsignal.c b/setsignal.c index 1eeda639..1bcc032e 100644 --- a/setsignal.c +++ b/setsignal.c @@ -19,11 +19,6 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef lint -static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/setsignal.c,v 1.9 2003-11-04 07:29:16 guy Exp $ (LBL)"; -#endif - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -78,6 +73,8 @@ RETSIGTYPE memset(&new, 0, sizeof(new)); new.sa_handler = func; + if (sig == SIGCHLD) + new.sa_flags = SA_RESTART; if (sigaction(sig, &new, &old) < 0) return (SIG_ERR); return (old.sa_handler);