[Bug 940290] Re: console log consumes fds upon job restart/respawn

Launchpad Bug Tracker 940290 at bugs.launchpad.net
Fri Mar 23 06:40:21 UTC 2012


** Branch linked: lp:ubuntu/upstart

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/940290

Title:
  console log consumes fds upon job restart/respawn

Status in Upstart:
  Fix Released
Status in “upstart” package in Ubuntu:
  Confirmed

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/test.conf <<EOF
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/940290/+subscriptions




More information about the foundations-bugs mailing list