apr_proc_wait(); call ap_process_child_status() for children which
terminate, to ensure that abnormal exits (e.g. SIGSEGV) are logged.
PR: 42757
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@613263
13f79535-47bb-0310-9956-
ffa450edef68
{
apr_proc_t proc;
apr_status_t waitret;
+ apr_exit_why_e why;
+ int status;
/* Ensure pid sanity. */
if (pid < 1) {
}
proc.pid = pid;
- waitret = apr_proc_wait(&proc, NULL, NULL, APR_NOWAIT);
+ 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);
+#endif
return 1;
}