diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2018-06-10 06:21:45 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2018-06-10 06:21:45 +0000 |
commit | da446b10ed677f32440afcf547ff22b765cd8930 (patch) | |
tree | 396a0058762af3b9c08c7c6ecfbce9d8180b53ef /usr.bin/top | |
parent | c1192502cb217a90039ac1faeabf6bc3a37e0c47 (diff) | |
download | src-da446b10ed677f32440afcf547ff22b765cd8930.tar.gz src-da446b10ed677f32440afcf547ff22b765cd8930.zip |
top(1): permit sending signal with any case
Notes
Notes:
svn path=/head/; revision=334916
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/commands.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/top/commands.c b/usr.bin/top/commands.c index c228fc2f1c41..6cc787974a19 100644 --- a/usr.bin/top/commands.c +++ b/usr.bin/top/commands.c @@ -401,17 +401,17 @@ kill_procs(char *str) /* translate the name into a number */ for (sigp = sigdesc; sigp->name != NULL; sigp++) { - if (strcmp(sigp->name, str + 1) == 0) - { - signum = sigp->number; - break; + if (strcasecmp(sigp->name, str + 1) == 0) + { + signum = sigp->number; + break; + } } - } /* was it ever found */ if (sigp->name == NULL) { - return(bad_signal_name); + return(bad_signal_name); } } /* put the new pointer in place */ |