httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55239] Apache Graceful restart issue
Date Mon, 22 Jul 2013 09:36:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55239

--- Comment #5 from aks <akshay.ballarpure@nsn.com> ---

We are now ignoring all the signals while cleaning up resources. please let us
know if any issue with these changes? Thanks .

static void clean_child_exit(int code)
{
    sigset_t mask;
    sigfillset(&mask);
    sigprocmask(SIG_SETMASK, &mask, NULL);

    /*apr_signal(SIGHUP, SIG_IGN);
    apr_signal(SIGTERM, SIG_IGN);
    apr_signal(SIGUSR1, SIG_IGN);
    apr_signal(AP_SIG_GRACEFUL, SIG_IGN);*/

    ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, "AKS:exiting %d process",
getpid()); 
    mpm_state = AP_MPMQ_STOPPING;

    if (pchild) {
        apr_pool_destroy(pchild);
    }
    ap_mpm_pod_close(pod);
    chdir_for_gprof();
    exit(code);
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message