commit 0444d16475c22a2377ab408ed67fb8a4d753931e parent 603d86f276d094f5ea115b623b2d8de69a996308 Author: sin <sin@2f30.org> Date: Mon, 10 Nov 2014 23:52:55 +0000 Fix kill -l Diffstat:
M | kill.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kill.c b/kill.c @@ -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++)