commit c0f540162f56f18cffd5b110557b2af1951f3780
parent 0967d2e2785fe9c67ec13e4f474a513ab6cf3417
Author: sin <sin@2f30.org>
Date: Tue, 11 Nov 2014 16:34:05 +0000
Die early if signal is invalid in -signum
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/kill.c b/kill.c
@@ -58,6 +58,7 @@ main(int argc, char *argv[])
sig = strtol(&argv[0][1], &end, 10);
if (*end != '\0' || errno != 0)
eprintf("%s: bad signal number\n", &argv[0][1]);
+ sig2name(sig);
argc--;
argv++;
} else if (strcmp(argv[0], "-l") == 0) {