diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-04 00:13:22 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-04 00:13:22 +0000 |
commit | 96d0d8e1df139b0fb3b6e43a8b1c02837458c8a5 (patch) | |
tree | a5511692462c2b5ceb298e1b8d98ad4a463257c5 | |
parent | 9d13d2c633c4ebb0eea727823d2be30fd4737c97 (diff) | |
download | busybox-w32-96d0d8e1df139b0fb3b6e43a8b1c02837458c8a5.tar.gz busybox-w32-96d0d8e1df139b0fb3b6e43a8b1c02837458c8a5.tar.bz2 busybox-w32-96d0d8e1df139b0fb3b6e43a8b1c02837458c8a5.zip |
Jason Schoon writes:
Here is a patch for kill that I posted long ago, but forgot about
until today. This allows kill to specify a negative process/group
(such as -1). The shell already had this fix applied by Vodz some
time ago.
git-svn-id: svn://busybox.net/trunk/busybox@13063 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | procps/kill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/kill.c b/procps/kill.c index 25a8d0124..6d7f083b8 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -111,7 +111,7 @@ do_it_now: | |||
111 | while (--argc >= 0) { | 111 | while (--argc >= 0) { |
112 | int pid; | 112 | int pid; |
113 | 113 | ||
114 | if (!isdigit(**argv)) | 114 | if (!isdigit(**argv) && **argv != '-') |
115 | bb_error_msg_and_die( "Bad PID '%s'", *argv); | 115 | bb_error_msg_and_die( "Bad PID '%s'", *argv); |
116 | pid = strtol(*argv, NULL, 0); | 116 | pid = strtol(*argv, NULL, 0); |
117 | if (kill(pid, signo) != 0) { | 117 | if (kill(pid, signo) != 0) { |