Skip to content
Browse files

Fix sh trap error

  • Loading branch information...
1 parent 520e66d commit 6b51bd08cf8b832a85414001bfbe557f73fba452 Mihai Costea committed Feb 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sh/trap.c
View
2 sh/trap.c
@@ -99,7 +99,7 @@ signame_to_signum(const char *p)
if (strncasecmp(p, "sig", 3) == 0)
p += 3;
- for (i = 0; i < NSIG; ++i)
+ for (i = 1; i < NSIG; ++i)
if (strcasecmp (p, sys_signame[i]) == 0)
return i;
return -1;

0 comments on commit 6b51bd0

Please sign in to comment.
Something went wrong with that request. Please try again.