projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f982d86
)
Jason Schoon writes:
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 4 Jan 2006 00:13:22 +0000
(
00:13
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 4 Jan 2006 00:13:22 +0000
(
00:13
-0000)
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.
procps/kill.c
patch
|
blob
|
history
diff --git
a/procps/kill.c
b/procps/kill.c
index 25a8d012467ac86cde9c236bf07ee4078663c6c3..6d7f083b8ae901d5f5819e5424a0767db959d574 100644
(file)
--- a/
procps/kill.c
+++ b/
procps/kill.c
@@
-111,7
+111,7
@@
do_it_now:
while (--argc >= 0) {
int pid;
- if (!isdigit(**argv))
+ if (!isdigit(**argv)
&& **argv != '-'
)
bb_error_msg_and_die( "Bad PID '%s'", *argv);
pid = strtol(*argv, NULL, 0);
if (kill(pid, signo) != 0) {