httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathihalli, Madhusudan" <mad...@hp.com>
Subject RE: CGI scripts and mod_cgid/mod_cgi
Date Tue, 29 Jun 2004 18:47:08 GMT


: -----Original Message-----
: From: Colm MacCarthaigh [mailto:colm@stdlib.net] 
[SNIP]
: > Upon doing a "apachectl stop", shouldn't the CGI processes 
: (forked by 
: > mod_cgid or mod_cgi) also exit ?
: 
: It depends, if they call setsid() and so on - there's no 
: particular reason they should. Ordinarily - yes.

In case of setsid(), I have no idea what the behaviour should be :-). 

For the 'Ordinarily' case - it doesn't do it today. It can be easily
done by having a "kill (0, SIGTERM)" just before mod_cgid/apache exits -
but I don't know if it's portable.

-Madhu

Mime
View raw message