kill: allow signum
This commit is contained in:
parent
8cd8d44570
commit
f2e86862be
3
kill.c
3
kill.c
|
@ -34,6 +34,9 @@ main(int argc, char *argv[])
|
||||||
lflag = true;
|
lflag = true;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
|
sig = strtol(optarg, &end, 0);
|
||||||
|
if(*end == '\0')
|
||||||
|
break;
|
||||||
for(i = 0; i < LEN(sigs); i++)
|
for(i = 0; i < LEN(sigs); i++)
|
||||||
if(!strcasecmp(optarg, sigs[i].name)) {
|
if(!strcasecmp(optarg, sigs[i].name)) {
|
||||||
sig = sigs[i].sig;
|
sig = sigs[i].sig;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user