httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathihalli, Madhusudan" <>
Subject RE: mod_cgi and apr_setup_signal_thread
Date Tue, 13 Apr 2004 16:15:02 GMT

You're partially correct. Here's whatz happening: 

worker.c: child_main() invokes apr_setup_signal_thread()
signals.c: apr_setup_signal_thread() 
           -> sigfillset(&sig_mask);
              sigprocmask(SIG_SETMASK, &sig_mask, NULL)
              -> Thus disabling the delivery of async signals to the process

mod_cgi comes along, forks a child process and happily inherits the signal mask from the parent
(the only thing apr_proc_create() does is to change SIGCHLD to default behaviour).


>-----Original Message-----
>From: Jeff Trawick []
>Sent: Tuesday, April 13, 2004 4:55 AM
>Subject: Re: mod_cgi and apr_setup_signal_thread
>Mathihalli, Madhusudan wrote:
>> I'm using the worker MPM for both mod_cgi and mod_cgid.
>I don't see any httpd 2.0/apr 0.9 code which manipulates 
>SIGALRM.  Can you give 
>me a pointer?

View raw message