diff -u upstart-0.2.7/debian/changelog upstart-0.2.7/debian/changelog --- upstart-0.2.7/debian/changelog +++ upstart-0.2.7/debian/changelog @@ -1,3 +1,12 @@ +upstart (0.2.7-7.1) edgy-proposed; urgency=low + + * Set inotify file descriptor to be closed on exec(); otherwise it will + be leaked to other processes, and more critically, leaked to itself + on re-exec eventually consuming all available inotify instances and + leading to a crash due to configuration unavailability. LP: #141034. + + -- Scott James Remnant Fri, 21 Sep 2007 17:36:48 +0100 + upstart (0.2.7-7) edgy; urgency=low * Don't abort the postinst if we can't send init SIGTERM. Ubuntu: #64499. only in patch2: unchanged: --- upstart-0.2.7.orig/nih/file.c +++ upstart-0.2.7/nih/file.c @@ -86,6 +86,8 @@ if (inotify_fd < 0) return; + nih_io_set_cloexec (inotify_fd); + NIH_MUST (nih_io_reopen (NULL, inotify_fd, nih_file_reader, NULL, NULL, NULL)); }