console log consumes fds upon job restart/respawn
Bug #940290 reported by
Tuomo Tanskanen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Fix Released
|
Medium
|
James Hunt | ||
upstart (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Upstart is consuming more and more fds for restarted/respawned jobs. It is not losing the references, as fds are closed upon stopping the job.
Test case:
sudo cat >/etc/init/
console log
respawn
script
echo "foo"
sleep 9999
end script
post-start exec echo "bar"
EOF
sudo start test
sudo ls -l /proc/1/fd | grep test (one fd)
sudo restart test
sudo ls -l /proc/1/fd | grep test (two fds)
sudo killall sleep
sudo ls -l /proc/1/fd | grep test (three fds)
sudo stop test
sudo ls -l /proc/1/fd | grep test (zero fds)
Tested on Ubuntu 12.04, Upstart 1.4-0ubuntu8, also upstream 1.4.
Related branches
Changed in upstart: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → James Hunt (jamesodhunt) |
Changed in upstart (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in upstart: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Revision 1363 seems to fix this, thank you.