From 6e1dea0642153441455bcc6687e36fad80fed459 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 21 Jan 2001 01:03:31 +0000 Subject: [PATCH] Make "killall -t p0" really works. Old code works only if at least one process name additionly specified. --- usr.bin/killall/killall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c index c91ea958f071..4530c50eed66 100644 --- a/usr.bin/killall/killall.c +++ b/usr.bin/killall/killall.c @@ -320,7 +320,8 @@ main(int ac, char **av) } if (matched == 0) continue; - matched = 0; + if (ac > 0) + matched = 0; for (j = 0; j < ac; j++) { if (mflag) { if (regcomp(&rgx, av[j],