[Bug 406397] Re: init: job stuck with expect fork/daemon when parent reaps child

Scott James Remnant scott at canonical.com
Wed Sep 1 15:34:45 CEST 2010


This and bug #530779 are fundamental due to Upstart's use of ptrace()
for fork following - a rewrite of Upstart is in progress which uses
other newer kernel mechanisms to follow forks and would not be
vulnerable to this kind of issue. However there's no "quick fix" to it,
and no way to backport that code.

-- 
init: job stuck with expect fork/daemon when parent reaps child
https://bugs.launchpad.net/bugs/406397
You received this bug notification because you are subscribed to PLD
Linux.

Status in Upstart: Triaged
Status in “aiccu” package in Ubuntu: New
Status in “upstart” package in Ubuntu: Invalid
Status in PLD Linux Distribution: New

Bug description:
Hi

Wrong use of the expect fork stanza can create job with status
  job stop/killled, process nnn
without any process nnn running on the system.

As an example the following avahi.conf should have used
"expect daemon", but will instead create a stuck job.

stop on stopping dbus-system
respawn
expect fork
exec avahi-daemon -D

/Emil Renner Berthing




More information about the pld-bugs mailing list