https://bz.apache.org/bugzilla/show_bug.cgi?id=63140
Bug ID: 63140
Summary: pid file may get corrupted and prevent httpd from
starting
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
If a power outage occurs at the wrong moment, subsequent attempts to start
httpd may fail with the following error:
```
Error retrieving pid file ...
Remove it before continuing if it is corrupted.
```
The way pid files are created in apache is racy. The file is created, then it's
content is written to it. If a power outage happens between the two steps, the
pid file may stay empty.
A temporary file should be created instead and renamed after it has been
written to and flushed.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]