Fix kill -l

This commit is contained in:
sin 2014-11-10 23:52:55 +00:00
parent 603d86f276
commit 0444d16475
1 changed files with 2 additions and 2 deletions

4
kill.c
View File

@ -57,11 +57,11 @@ main(int argc, char *argv[])
usage();
} ARGEND;
if(argc < 1)
if(argc < 1 && !lflag)
usage();
if(lflag) {
sig = (argc > 0) ? 0 : estrtol(argv[0], 0);
sig = (argc > 0) ? estrtol(argv[0], 0) : 0;
if(sig > 128)
sig = WTERMSIG(sig);
for(i = 0; i < LEN(sigs); i++)