diff toys/posix/kill.c @ 780:6cc69be43c42

Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
author Rob Landley <rob@landley.net>
date Wed, 02 Jan 2013 02:00:35 -0600
parents 786841fdb1e0
children cae43f3cfff4
line wrap: on
line diff
--- a/toys/posix/kill.c	Mon Dec 31 14:38:13 2012 -0600
+++ b/toys/posix/kill.c	Wed Jan 02 02:00:35 2013 -0600
@@ -62,9 +62,6 @@
     char *arg = *(args++);
 
     pid = strtol(arg, &tmp, 10);
-    if (*tmp || kill(pid, signum) < 0) {
-      error_msg("unknown pid '%s'", arg);
-      toys.exitval = EXIT_FAILURE;
-    }
+    if (*tmp || kill(pid, signum) < 0) error_msg("unknown pid '%s'", arg);
   }
 }