blob: 69b00298bf2060eac2dc582ae7d3a2777e3f7183 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 52ec990a0823501e28015c2e9607dc6cfc7542ba Mon Sep 17 00:00:00 2001
From: http://ftp.de.debian.org/debian/pool/main/p/procps/procps_3.2.8-8.debian.tar.gz <info@debian.org>
Date: Fri, 19 Mar 2010 21:58:46 +0100
Subject: [PATCH 58/70] skill_null_argv
---
skill.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/skill.c b/skill.c
index c8af9fd..d9a1af9 100644
--- a/skill.c
+++ b/skill.c
@@ -307,7 +307,7 @@ no_more_args:
long pid;
char *endp;
pid = strtol(argv[argc],&endp,10);
- if(!*endp){
+ if(!*endp && (endp != argv[argc])){
if(!kill((pid_t)pid,signo)) continue;
// The UNIX standard contradicts itself. If at least one process
// is matched for each PID (as if processes could share PID!) and
--
1.7.0
|