svn commit: trunk/busybox/procps

vapier at busybox.net vapier at busybox.net
Wed Jan 4 00:13:23 UTC 2006


Author: vapier
Date: 2006-01-03 16:13:22 -0800 (Tue, 03 Jan 2006)
New Revision: 13063

Log:
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.


Modified:
   trunk/busybox/procps/kill.c


Changeset:
Modified: trunk/busybox/procps/kill.c
===================================================================
--- trunk/busybox/procps/kill.c	2006-01-04 00:11:26 UTC (rev 13062)
+++ trunk/busybox/procps/kill.c	2006-01-04 00:13:22 UTC (rev 13063)
@@ -111,7 +111,7 @@
 		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) {




More information about the busybox-cvs mailing list