You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Akins <ba...@web.turner.com> on 2006/02/28 17:23:56 UTC
return value of httpd
If I run httpd -k stop, if it cannot stop listener, it still returns 0.
same for graceful-stop. should it return something else?
--
Brian Akins
Lead Systems Engineer
CNN Internet Technologies
Re: return value of httpd
Posted by Sander Temme <sc...@apache.org>.
On Feb 28, 2006, at 8:23 AM, Brian Akins wrote:
> If I run httpd -k stop, if it cannot stop listener, it still
> returns 0. same for graceful-stop. should it return something else?
Depends on what it actually does. If you follow the code into server/
main.c:630 and server/mpm_common.c:898, you see that all httpd -k
stop does is send a SIGTERM to the pid read from the PidFile in the
config. Its return value merely means "I've sent the signal" and not
"httpd was successfully shut down" because there's no way it can know
this.
S.