View | Details | Raw Unified | Return to bug 31440
Collapse All | Expand All

(-)modules/generators/mod_cgi.c (+4 lines)
Lines 446-457 Link Here
446
        ((rc = apr_procattr_addrspace_set(procattr,
446
        ((rc = apr_procattr_addrspace_set(procattr,
447
                                        e_info->addrspace)) != APR_SUCCESS) ||
447
                                        e_info->addrspace)) != APR_SUCCESS) ||
448
        ((rc = apr_procattr_child_errfn_set(procattr, cgi_child_errfn)) != APR_SUCCESS)) {
448
        ((rc = apr_procattr_child_errfn_set(procattr, cgi_child_errfn)) != APR_SUCCESS)) {
449
	    /*apr_procattr_child_err_set(procattr,...) and
450
		  apr_procattr_child_out_set(procattr,...) should be invoked here*/
451
          
449
        /* Something bad happened, tell the world. */
452
        /* Something bad happened, tell the world. */
450
        ap_log_rerror(APLOG_MARK, APLOG_ERR, rc, r,
453
        ap_log_rerror(APLOG_MARK, APLOG_ERR, rc, r,
451
                      "couldn't set child process attributes: %s", r->filename);
454
                      "couldn't set child process attributes: %s", r->filename);
452
    }
455
    }
453
    else {
456
    else {
454
        procnew = apr_pcalloc(p, sizeof(*procnew));
457
        procnew = apr_pcalloc(p, sizeof(*procnew));
458
		/*ap_proc_create() is invoked inside ap_os_create_privileged_process*/
455
        rc = ap_os_create_privileged_process(r, procnew, command, argv, env,
459
        rc = ap_os_create_privileged_process(r, procnew, command, argv, env,
456
                                             procattr, p);
460
                                             procattr, p);
457
461

Return to bug 31440