comparison 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
comparison
equal deleted inserted replaced
779:90e98cdb1b7c 780:6cc69be43c42
60 60
61 while (*args) { 61 while (*args) {
62 char *arg = *(args++); 62 char *arg = *(args++);
63 63
64 pid = strtol(arg, &tmp, 10); 64 pid = strtol(arg, &tmp, 10);
65 if (*tmp || kill(pid, signum) < 0) { 65 if (*tmp || kill(pid, signum) < 0) error_msg("unknown pid '%s'", arg);
66 error_msg("unknown pid '%s'", arg);
67 toys.exitval = EXIT_FAILURE;
68 }
69 } 66 }
70 } 67 }