1 Feb 2008 09:50
svn commit: r617373 - /httpd/httpd/trunk/server/mpm_common.c
<martin <at> apache.org>
2008-02-01 08:50:10 GMT
2008-02-01 08:50:10 GMT
Author: martin Date: Fri Feb 1 00:50:09 2008 New Revision: 617373 URL: http://svn.apache.org/viewvc?rev=617373&view=rev Log: Avoid core dumps by getting the signal_description only if a process actually terminated on a signal. Update status only on a valid wait response. Modified: httpd/httpd/trunk/server/mpm_common.c Modified: httpd/httpd/trunk/server/mpm_common.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm_common.c?rev=617373&r1=617372&r2=617373&view=diff ============================================================================== --- httpd/httpd/trunk/server/mpm_common.c (original) +++ httpd/httpd/trunk/server/mpm_common.c Fri Feb 1 00:50:09 2008 <at> <at> -138,7 +138,8 <at> <at> waitret = apr_proc_wait(&proc, &status, &why, APR_NOWAIT); if (waitret != APR_CHILD_NOTDONE) { #ifdef AP_MPM_WANT_PROCESS_CHILD_STATUS - ap_process_child_status(&proc, why, status); + if (waitret == APR_CHILD_DONE) + ap_process_child_status(&proc, why, status); #endif return 1; } <at> <at> -417,7 +418,7 <at> <at> int ap_process_child_status(apr_proc_t *pid, apr_exit_why_e why, int status)(Continue reading)
RSS Feed