You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <ma...@apache.org> on 2004/02/05 14:01:43 UTC
[PATCH] More sensible behavior(?) when zero-length pid file is found
When, with httpd-2.1, the pid file exists but has a zero size, then
httpd refuses to start.
The attached patch changes this behavior and removes the empty pid file
(but only if it exists AND is empty) and logs a message:
(17)File exists: Zero-length PID file logs/httpd.pid ignored.
to the console during startup.
Not a very frequent error indeed....
Martin
--
<Ma...@Fujitsu-Siemens.com> | Fujitsu Siemens
Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730 Munich, Germany
Re: [PATCH] More sensible behavior(?) when zero-length pid file is
found
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Thursday, February 5, 2004 2:01 PM +0100 Martin Kraemer
<ma...@apache.org> wrote:
> When, with httpd-2.1, the pid file exists but has a zero size, then
> httpd refuses to start.
>
> The attached patch changes this behavior and removes the empty pid file
> (but only if it exists AND is empty) and logs a message:
>
> (17)File exists: Zero-length PID file logs/httpd.pid ignored.
+1. -- justin