kill: allow signum

This commit is contained in:
Connor Lane Smith 2011-06-10 03:12:45 +01:00
parent 8cd8d44570
commit f2e86862be
1 changed files with 3 additions and 0 deletions

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;