summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAlan Ferrency <alan@pair.com>2003-06-11 10:07:00 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2003-06-13 14:36:18 +0000
commit36b5d37759b240b9bf50903516f8b06d0cf59382 (patch)
tree73bedc9df65e58888739dd735237d9be5d78885a /util.c
parentf72d1791dc00727a5f66df7ed9fa216194f48af8 (diff)
downloadperl-36b5d37759b240b9bf50903516f8b06d0cf59382.tar.gz
Re: [perl #18849] fork/system bug on FreeBSD
Message-ID: <Pine.BSF.4.30.0306111348450.32145-100000@smx.pair.com> (the first alternative) p4raw-id: //depot/perl@19765
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index ab1d6dc213..fa1aebc789 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