From: Alan Ferrency Date: Wed, 11 Jun 2003 14:07:00 +0000 (-0400) Subject: Re: [perl #18849] fork/system bug on FreeBSD X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=36b5d37759b240b9bf50903516f8b06d0cf59382;p=p5sagit%2Fp5-mst-13.2.git Re: [perl #18849] fork/system bug on FreeBSD Message-ID: (the first alternative) p4raw-id: //depot/perl@19765 --- diff --git a/util.c b/util.c index ab1d6dc..fa1aebc 100644 --- a/util.c +++ b/util.c @@ -2200,7 +2200,7 @@ Perl_rsignal(pTHX_ int signo, Sighandler_t handler) if (PL_signals & PERL_SIGNALS_UNSAFE_FLAG) act.sa_flags |= SA_RESTART; /* SVR4, 4.3+BSD */ #endif -#ifdef SA_NOCLDWAIT +#ifdef SA_NOCLDWAIT && !defined(BSDish) /* See [perl #18849] */ if (signo == SIGCHLD && handler == (Sighandler_t)SIG_IGN) act.sa_flags |= SA_NOCLDWAIT; #endif @@ -2239,7 +2239,7 @@ Perl_rsignal_save(pTHX_ int signo, Sighandler_t handler, Sigsave_t *save) if (PL_signals & PERL_SIGNALS_UNSAFE_FLAG) act.sa_flags |= SA_RESTART; /* SVR4, 4.3+BSD */ #endif -#ifdef SA_NOCLDWAIT +#if defined(SA_NOCLDWAIT) && !defined(BSDish) /* See [perl #18849] */ if (signo == SIGCHLD && handler == (Sighandler_t)SIG_IGN) act.sa_flags |= SA_NOCLDWAIT; #endif