1
0
mirror of git://git.suckless.org/sbase synced 2024-12-24 16:02:54 +00:00

kill: allow signum

This commit is contained in:
Connor Lane Smith 2011-06-10 03:12:45 +01:00
parent 8cd8d44570
commit f2e86862be

3
kill.c
View File

@ -34,6 +34,9 @@ main(int argc, char *argv[])
lflag = true;
break;
case 's':
sig = strtol(optarg, &end, 0);
if(*end == '\0')
break;
for(i = 0; i < LEN(sigs); i++)
if(!strcasecmp(optarg, sigs[i].name)) {
sig = sigs[i].sig;