diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-25 22:12:28 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-25 22:12:28 +0000 |
commit | 3e04e5d6aec375c308c48d83d8afcdbb7b879c1f (patch) | |
tree | 551b8f0c0328b4458a1ab9e9dad19adb0ab4ab4f /procps/kill.c | |
parent | c4b8c1f4418729ca30a7975b34795d78f976b40d (diff) | |
download | busybox-w32-3e04e5d6aec375c308c48d83d8afcdbb7b879c1f.tar.gz busybox-w32-3e04e5d6aec375c308c48d83d8afcdbb7b879c1f.tar.bz2 busybox-w32-3e04e5d6aec375c308c48d83d8afcdbb7b879c1f.zip |
last_patch_67 from Vladimir N. Oleynik
git-svn-id: svn://busybox.net/trunk/busybox@6012 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'procps/kill.c')
-rw-r--r-- | procps/kill.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/procps/kill.c b/procps/kill.c index cf5c412a8..9b31f28d6 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -132,15 +132,17 @@ do_it_now: | |||
132 | if (quiet==0) | 132 | if (quiet==0) |
133 | error_msg( "%s: no process killed", *argv); | 133 | error_msg( "%s: no process killed", *argv); |
134 | } else { | 134 | } else { |
135 | for(; *pidList!=0; pidList++) { | 135 | long *pl; |
136 | if (*pidList==myPid) | 136 | |
137 | continue; | 137 | for(pl = pidList; *pl !=0 ; pl++) { |
138 | if (kill(*pidList, sig) != 0) { | 138 | if (*pl==myPid) |
139 | errors++; | 139 | continue; |
140 | if (quiet==0) | 140 | if (kill(*pl, sig) != 0) { |
141 | perror_msg( "Could not kill pid '%d'", *pidList); | 141 | errors++; |
142 | if (quiet==0) | ||
143 | perror_msg( "Could not kill pid '%d'", *pl); | ||
144 | } | ||
142 | } | 145 | } |
143 | } | ||
144 | } | 146 | } |
145 | free(pidList); | 147 | free(pidList); |
146 | argv++; | 148 | argv++; |