summaryrefslogtreecommitdiff
path: root/devel/apr/patches/patch-aa
blob: 1979d1c9be971344056623d741390d850d7da2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aa,v 1.3 2005/09/21 00:01:01 tv 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