Bug 38994

Summary: ap_graceful_stop_signalled() always returns "0" from prefork.c
Product: Apache httpd-2 Reporter: Anton Lavrentiev <lavr>
Component: mpm_preforkAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 2.0.55   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Anton Lavrentiev 2006-03-16 02:19:14 UTC
mpm/prefork/prefork.c implements ap_graceful_stop_signalled() as
the following (BTW, same goes true for mpm/netware/mpm_netware.c but
I don't use that at all):

    int ap_graceful_stop_signalled(void)
    {
        /* not ever called anymore... */
        return 0;
    }
 
Not only the comment is wrong (the function IS actually called from
modules/core/http_core.c), this "implemetation" goes out of
sync with implementations of the same call in all other MPMs, so
any code that depends on whether the restart is graceful or
forced, will fail to detect this, yet the fix is the simplest ever:
just a return of "is_graceful" instead of plain "0" will do the job.
Comment 1 Andrew 2011-02-01 21:23:18 UTC
This bug is related to bug 41743 - which has a candidate patch available.
Comment 2 Andrew 2011-02-15 22:31:04 UTC

*** This bug has been marked as a duplicate of bug 41743 ***