init: job stuck with expect fork/daemon when parent reaps child
Bug #406397 reported by
Emil Renner Berthing
This bug affects 78 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Triaged
|
Medium
|
James Hunt | ||
PLD Linux |
New
|
Undecided
|
Unassigned | ||
irqbalance (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
upstart (Debian) |
Fix Released
|
Unknown
|
|||
upstart (Ubuntu) |
Invalid
|
Low
|
Unassigned |
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
Changed in upstart: | |
importance: | Low → Medium |
Changed in aiccu (Ubuntu): | |
status: | New → Confirmed |
Changed in upstart (Debian): | |
status: | Unknown → New |
no longer affects: | aiccu (Ubuntu) |
Changed in upstart (Debian): | |
status: | New → Confirmed |
Changed in upstart: | |
assignee: | nobody → James Hunt (jamesodhunt) |
Changed in upstart (Debian): | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Confirmed on test system here. I guess that a side-effect of ptrace() is that we don't get the SIGCHLD signal for the process, or could we be ignoring it?