apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/threadproc/unix signals.c
Date Fri, 19 Apr 2002 17:21:05 GMT
trawick     02/04/19 10:21:05

  Modified:    .        CHANGES
               threadproc/unix signals.c
  Log:
  Tru64: Stop leaving zombies in APR apps like mod_cgid which
  tell APR to ignore SIGCHLD.
  
  Submitted by:  Dave Hill <David.D.Hill@Compaq.com>
  Reviewed by:   Jeff Trawick
  
  Revision  Changes    Path
  1.261     +4 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.260
  retrieving revision 1.261
  diff -u -r1.260 -r1.261
  --- CHANGES	18 Apr 2002 17:15:27 -0000	1.260
  +++ CHANGES	19 Apr 2002 17:21:05 -0000	1.261
  @@ -1,5 +1,9 @@
   Changes with APR b1
   
  +  *) Tru64: Stop leaving zombies in APR apps like mod_cgid which
  +     tell APR to ignore SIGCHLD.  
  +     [Dave Hill <David.D.Hill@Compaq.com>]
  +
     *) Ensure that the ATOMIC_HASH can not be negative.
        [Joe Orton <jorton@redhat.com>]
   
  
  
  
  1.44      +10 -0     apr/threadproc/unix/signals.c
  
  Index: signals.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/signals.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- signals.c	11 Apr 2002 14:37:34 -0000	1.43
  +++ signals.c	19 Apr 2002 17:21:05 -0000	1.44
  @@ -105,6 +105,16 @@
   #ifdef SA_INTERRUPT             /* SunOS */
       act.sa_flags |= SA_INTERRUPT;
   #endif
  +#if defined(__osf__) && defined(__alpha)
  +    /* XXX jeff thinks this should be enabled whenever SA_NOCLDWAIT is defined */
  +
  +    /* this is required on Tru64 to cause child processes to
  +     * disappear gracefully - XPG4 compatible 
  +     */
  +    if ((signo == SIGCHLD) && (func == SIG_IGN)) {
  +        act.sa_flags |= SA_NOCLDWAIT;
  +    }
  +   #endif
       if (sigaction(signo, &act, &oact) < 0)
           return SIG_ERR;
       return oact.sa_handler;
  
  
  

Mime
View raw message