summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-04-05 10:54:26 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-04-05 10:54:26 +0000
commit438042f641eef1c8e1c7ac0de5b2ccac5581c9e8 (patch)
tree4d1f51d3f07850e94b94e055731ecbeac86d4737 /threadproc
parentd4dbcde11c1d82bfa306654c5aeaa3ea3a70fbd7 (diff)
downloadlibapr-438042f641eef1c8e1c7ac0de5b2ccac5581c9e8.tar.gz
* threadproc/unix/signals.c (apr_signal, avoid_zombies): Use the
Darwin zombie-avoidance hack on NetBSD too. PR: 36750 Submitted by: Todd Vierling <tv pobox.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@391580 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/unix/signals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/threadproc/unix/signals.c b/threadproc/unix/signals.c
index e2f0fe0f1..920d8aab4 100644
--- a/threadproc/unix/signals.c
+++ b/threadproc/unix/signals.c
@@ -55,7 +55,7 @@ APR_DECLARE(apr_status_t) apr_proc_kill(apr_proc_t *proc, int signum)
#if APR_HAVE_SIGACTION
-#ifdef DARWIN
+#if defined(__NetBSD__) || defined(DARWIN)
static void avoid_zombies(int signo)
{
int exit_status;
@@ -91,7 +91,7 @@ APR_DECLARE(apr_sigfunc_t *) apr_signal(int signo, apr_sigfunc_t * func)
act.sa_flags |= SA_NOCLDWAIT;
}
#endif
-#ifdef DARWIN
+#if defined(__NetBSD__) || defined(DARWIN)
/* ignoring SIGCHLD or leaving the default disposition doesn't avoid zombies,
* and there is no SA_NOCLDWAIT flag, so catch the signal and reap status in
* the handler to avoid zombies