Here's a test case: a program that forks a longer running process (could be a daemon) and exits. debianutils 4.0.2 is buggy, and waits until the forked program exits:
% run-parts --report . & sleep 1 && ps xf [1] 2742 PID TTY STAT TIME COMMAND 28460 ? S 0:00 sshd: ltirkkon@pts/0 28461 pts/0 Ss 0:00 \_ -zsh 2742 pts/0 SN 0:00 \_ run-parts --report . 2744 pts/0 ZN 0:00 | \_ [fork-sleeper] <defunct> 2746 pts/0 R+ 0:00 \_ ps xf 2745 pts/0 SN 0:00 ./fork-sleeper 4.2.1ubuntu1 fixes this issue: % run-parts --report . & sleep 1 && ps xf [1] 1952 [1] + done run-parts --report . PID TTY STAT TIME COMMAND 28460 ? S 0:00 sshd: ltirkkon@pts/0 28461 pts/0 Ss 0:00 \_ -zsh 1956 pts/0 R+ 0:00 \_ ps xf 1955 pts/0 SN 0:00 ./fork-sleeper ** Attachment added: "testcase program that forks a longer running process and exits" https://bugs.launchpad.net/ubuntu/+source/debianutils/+bug/792847/+attachment/2745918/+files/fork-sleeper.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/792847 Title: run-parts does not seem to reap its children To manage notifications about this bug go to: https://bugs.launchpad.net/debianutils/+bug/792847/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
