Commit b42997b6 authored by Benedikt Böhm's avatar Benedikt Böhm Committed by Craig Small

fix parsing of negative PIDs

Signed-off-by: Craig Small's avatarCraig Small <[email protected]>
parent aa9bd38d
......@@ -479,7 +479,7 @@ static void __attribute__ ((__noreturn__))
} else {
/* Special case for signal digit negative
* PIDs */
pid = (long)('0' - optopt);
pid = atoi(argv[optind]);
if (kill((pid_t)pid, signo) != 0)
exitvalue = EXIT_FAILURE;
exit(exitvalue);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment