DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41199>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41199 Summary: on cgi timeout, kill process group Product: Apache httpd-2 Version: 2.0.52 Platform: Other OS/Version: Linux Status: NEW Severity: trivial Priority: P2 Component: mod_cgi AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Hi, When the following happens in httpd 2.0.52, - cgi is launched - cgi launches a helper process - helper process does stuff for a too long time - apache httpd kills cgi process then - helper process still runs (I'd expect it to be dead, too) Maybe it would make sense to kill the process group instead (using the cgi pgid) (I'm not sure about all the implications). i. e. do: This seems to be the same in the httpd 2.2.3 source I just downloaded and read: mod_cgi.c:465 (in run_cgi_child) calls: apr_pool_note_subprocess(p, procnew, APR_KILL_AFTER_TIMEOUT); srclib/apr/memory/unix/apr_pools.c:2136 (in free_proc_chain) calls: if (apr_proc_kill(pc->proc, SIGTERM) == APR_SUCCESS) /srclib/apr/threadproc/unix/signals.c:48 (in apr_proc_kill) calls: if (kill(proc->pid, signum) == -1) { Which means if there were any helper processes spawned by the cgi, they will survive. Which I find strange... kill() with a negated pid would kill the entire process group, which would be preferrable. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
