summaryrefslogtreecommitdiffstats
path: root/patches/procps-3.2.8/generic/10_skill_perror.dpatch
blob: a2dbb6c27d3daccd57c8e2e520d36f298b74da26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_skill_perror.dpatch by  <csmall@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: kill prints perror #468363

@DPATCH@
diff -urNad procps-3.2.8~/skill.c procps-3.2.8/skill.c
--- procps-3.2.8~/skill.c	2009-05-11 22:10:28.000000000 +1000
+++ procps-3.2.8/skill.c	2009-05-11 22:15:13.000000000 +1000
@@ -317,6 +317,7 @@
       // 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;
     }