Project

General

Profile

Actions

Bug #1019

closed

Lighttpd unlinks pid file at the wrong time during a graceful restart

Added by chris@arachsys.com about 17 years ago. Updated about 16 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

If lighttpd is set to write a pid file and you do a graceful shutdown,
immediately relaunching a new lighttpd to achieve a graceful restart, the
new lighttpd overwrites the old lighttpd pidfile... but then as the old
lighttpd exits, it unlinks the new lighttpd's pidfile!

One possible fix is to unlink the pid file as soon as the socket is unbound
rather than only as lighttpd finally exits. I've attached a patch which
implements this and seems to fix the problem completely.


Files

lighttpd-1.4.13-pidfile.patch (970 Bytes) lighttpd-1.4.13-pidfile.patch chris@arachsys.com, 2007-02-09 23:10
Actions #1

Updated by stbuehler about 16 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Applied in r1656

Actions

Also available in: Atom