apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r414265 - /apr/apr/branches/1.2.x/threadproc/unix/signals.c
Date Wed, 14 Jun 2006 14:11:17 GMT
Author: jorton
Date: Wed Jun 14 07:11:17 2006
New Revision: 414265

URL: http://svn.apache.org/viewvc?rev=414265&view=rev
Log:
Merge r391580 from trunk:

* 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>

Modified:
    apr/apr/branches/1.2.x/threadproc/unix/signals.c

Modified: apr/apr/branches/1.2.x/threadproc/unix/signals.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/threadproc/unix/signals.c?rev=414265&r1=414264&r2=414265&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/threadproc/unix/signals.c (original)
+++ apr/apr/branches/1.2.x/threadproc/unix/signals.c Wed Jun 14 07:11:17 2006
@@ -55,7 +55,7 @@
 
 #if APR_HAVE_SIGACTION
 
-#ifdef DARWIN
+#if defined(__NetBSD__) || defined(DARWIN)
 static void avoid_zombies(int signo)
 {
     int exit_status;
@@ -91,7 +91,7 @@
         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



Mime
View raw message