summaryrefslogtreecommitdiff
path: root/src/mod_ssi_exprparser.y
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2016-03-19 15:01:23 +0000
committerStefan Bühler <stbuehler@web.de>2016-03-19 15:01:23 +0000
commitc92b1762ba2c851d028140a87513fe54cb49bf20 (patch)
treef36ea9807c23ef190e70ffd9a407347a42f44ec2 /src/mod_ssi_exprparser.y
parent6f89a8bbef4635beb73e0f21ba29498aa5da3fc3 (diff)
downloadlighttpd-git-c92b1762ba2c851d028140a87513fe54cb49bf20.tar.gz
[core] truncate pidfile on exit (fixes #2695)
If the server has changed its uid or is running in a chroot it may be unable to remove the pid file when it exits. However, if it holds on to an open handle to the pid file that has write permission, it will be able to truncate the pid file to 0 bytes in length. Most monitoring software recognizes a 0-length pid file as indicating there is no process running. Therefore always attempt to truncate the pid file before trying to remove it so that it's not left containing the pid of a process that is no longer running. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3112 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_ssi_exprparser.y')
0 files changed, 0 insertions, 0 deletions