commit 88f26b222b34c239b7e95606a57d5af193a65216
parent a81544a8102c588de8b40ba823294fe3f982d96f
Author: sin <sin@2f30.org>
Date: Tue, 11 Nov 2014 16:09:07 +0000
Actually print usage if kill -l is invoked with more than 1 arg
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kill.c b/kill.c
@@ -71,7 +71,8 @@ main(int argc, char *argv[])
for (i = 0; i < LEN(sigs); i++)
puts(sigs[i].name);
exit(0);
- }
+ } else if (argc > 1)
+ usage();
errno = 0;
sig = strtol(argv[0], &end, 0);
if (*end == '\0' && errno == 0) {