[BusyBox-cvs] CVS update of busybox/procps (kill.c)

Erik Andersen andersen at codepoet.org
Thu Aug 19 18:26:27 UTC 2004


    Date: Thursday, August 19, 2004 @ 12:26:27
  Author: andersen
    Path: /var/cvs/busybox/procps

Modified: kill.c (1.52 -> 1.53)

Patch from Tito adding support for '-q' 


Index: busybox/procps/kill.c
diff -u busybox/procps/kill.c:1.52 busybox/procps/kill.c:1.53
--- busybox/procps/kill.c:1.52	Mon Mar 15 01:29:03 2004
+++ busybox/procps/kill.c	Thu Aug 19 12:26:26 2004
@@ -37,11 +37,12 @@
 
 extern int kill_main(int argc, char **argv)
 {
-	int whichApp, signo = SIGTERM, quiet = 0;
+	int whichApp, signo = SIGTERM;
 	const char *name;
 	int errors = 0;
 
 #ifdef CONFIG_KILLALL
+	int quiet=0;
 	/* Figure out what we are trying to do here */
 	whichApp = (strcmp(bb_applet_name, "killall") == 0)? KILLALL : KILL;
 #else
@@ -86,6 +87,7 @@
 		return EXIT_SUCCESS;
 	}
 
+#ifdef CONFIG_KILLALL	
 	/* The -q quiet option */
 	if(argv[1][1]=='q' && argv[1][2]=='\0'){
 		quiet++;
@@ -95,6 +97,7 @@
 			goto do_it_now;
 		}
 	}
+#endif
 
 	if(!u_signal_names(argv[1]+1, &signo, 0))
 		bb_error_msg_and_die( "bad signal name '%s'", argv[1]+1);



More information about the busybox-cvs mailing list