[PATCH] killall5: return 2 if no processes got killed
Denys Vlasenko
vda.linux at googlemail.com
Mon Dec 16 02:23:13 UTC 2013
On Friday 13 December 2013 19:40, Uros Vampl wrote:
> This matches killall5 from sysvinit. From its manpage:
>
> EXIT STATUS
> The program return zero if it killed processes. It return 2 if
> no process were killed, and 1 if it was unable to find any
> processes (/proc/ is missing).
>
> For this to work kernel processes need to be filtered out, this patch
> does that as well
Whatever I try, I end up with ~50 more bytes of code.
What was the situation which prompted you to write this patch?
More information about the busybox
mailing list