Ticket #1019 (closed defect: fixed)

Opened 1 year ago

Last modified 5 months ago

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

Reported by: chris@arachsys.com Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.13
Severity: normal Keywords:
Cc: chris@arachsys.com Blocking:
Need Feedback: 0

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.

Attachments

lighttpd-1.4.13-pidfile.patch (0.9 kB) - added by chris@arachsys.com on 02/09/2007 11:10:44 PM.

Change History

02/09/2007 11:10:44 PM changed by chris@arachsys.com

  • attachment lighttpd-1.4.13-pidfile.patch added.

02/20/2008 06:57:54 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to fixed.
  • blocking changed.
  • pending changed.

Applied in [1656]


Add/Change #1019 (Lighttpd unlinks pid file at the wrong time during a graceful restart)




Change Properties
Action