]> granicus.if.org Git - procps-ng/commitdiff
skill: kill prints perror
authorJustin Pryzby <justinpryzby@users.sourceforge.net>
Thu, 28 Feb 2008 15:59:37 +0000 (10:59 -0500)
committerCraig Small <csmall@enc.com.au>
Sun, 18 Dec 2011 11:52:03 +0000 (22:52 +1100)
A patch from Debian.

Bug-Debian: http://bugs.debian.org/468363
Backported-by: Sami Kerola <kerolasa@iki.fi>
skill.c

diff --git a/skill.c b/skill.c
index 3a1d3167745984e04d8800c5661ccc032ccb14e2..a618667bb9685176ad9f85a5a41fdb034c68dadb 100644 (file)
--- a/skill.c
+++ b/skill.c
@@ -316,6 +316,7 @@ no_more_args:
       // The standard says we return non-zero if an error occurs. Thus if
       // killing two processes gives 0 for one and EPERM for the other,
       // we are required to return both zero and non-zero. Quantum kill???
+      perror("kill");
       exitvalue = 1;
       continue;
     }