22 lines
752 B
Text
22 lines
752 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $
|
|
|
|
--- apr/threadproc/unix/signals.c.orig 2005-02-04 15:36:31.000000000 -0500
|
|
+++ apr/threadproc/unix/signals.c
|
|
@@ -49,7 +49,7 @@ APR_DECLARE(apr_status_t) apr_proc_kill(
|
|
|
|
#if APR_HAVE_SIGACTION
|
|
|
|
-#ifdef DARWIN
|
|
+#if defined(__NetBSD__) || defined(DARWIN)
|
|
static void avoid_zombies(int signo)
|
|
{
|
|
int exit_status;
|
|
@@ -85,7 +85,7 @@ APR_DECLARE(apr_sigfunc_t *) apr_signal(
|
|
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
|