mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
kill: Fix support for kill -0
Signed-off-by: Ricardo Branco <[email protected]>
Fixes: 36679f7d7b ("kill: Use POSIX str2sig()")
Pull Request: https://github.com/freebsd/freebsd-src/pull/1733
This commit is contained in:
1 parent
7067bab893
commit
3ef02a3d2e
1 file changed
+3
-1
+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