find the script pid in the hash and returns zero... if we send
sigterm to pid zero, we knock out ourself
change the cleanup to return any error from cleanup_nonchild_process()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97493
13f79535-47bb-0310-9956-
ffa450edef68
}
close(sd);
- cleanup_nonchild_process(info->r, pid);
-
- return APR_SUCCESS;
+ if (pid == 0) {
+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, info->r,
+ "daemon couldn't find CGI process for connection %lu",
+ info->conn_id);
+ return APR_EGENERAL;
+ }
+ return cleanup_nonchild_process(info->r, pid);
}
static int cgid_handler(request_rec *r)