kill: Fix support for kill -0
Signed-off-by: Ricardo Branco <rbranco@suse.de>
Fixes: 36679f7d7b ("kill: Use POSIX str2sig()")
Pull Request: https://github.com/freebsd/freebsd-src/pull/1733
This commit is contained in:
committed by
Mark Johnston
parent
7067bab893
commit
3ef02a3d2e
+3
-1
@@ -99,7 +99,9 @@ main(int argc, char *argv[])
|
||||
argc--, argv++;
|
||||
} else if (**argv == '-' && *(*argv + 1) != '-') {
|
||||
++*argv;
|
||||
if (str2sig(*argv, &numsig) < 0)
|
||||
if (strcmp(*argv, "0") == 0)
|
||||
numsig = 0;
|
||||
else if (str2sig(*argv, &numsig) < 0)
|
||||
nosig(*argv);
|
||||
argc--, argv++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user