]> granicus.if.org Git - procps-ng/commit
pkill: fix error printing
authorSami Kerola <kerolasa@iki.fi>
Sat, 21 Jan 2012 01:09:48 +0000 (02:09 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 21 Jan 2012 11:15:40 +0000 (12:15 +0100)
commit3489b9343e8c94623344b6c7841d93e94c608e2c
tree45a120582e8cc184bbd6add6141f93acbacfc102
parent79ceb30b5cbda0b6a4627c79eac681f625122633
pkill: fix error printing

Print correct pid number of process that was where not killed
because of kill was not successful. Incorrect behaviour before
this fix is bello.

-- snip
$ ps -elf | grep dh[c]
1 S root      1409     1  0  80   0 -  1782 poll_s 02:01 ?        00:00:00 dhclient wlan0
$ pkill dhc
pkill: killing pid 1 failed: Operation not permitted
-- snip

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
pgrep.c