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; 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;