diff --git a/daemon.c b/daemon.c index ec9dfcd..665a4f7 100644 --- a/daemon.c +++ b/daemon.c @@ -159,11 +159,11 @@ static void parseControl(char *command) { } else if (!strcmp(action, "drop")) { drop = true; } else { - for (int i = 1; i < NSIG; ++i) { - char* signal[i]; - if (strcasecmp(action, signal[i])) continue; - break; - } + for (int i = 1; i < NSIG; ++i) { + if (strcasecmp(action, sigabbrev_np(i))) continue; + signal = i; + break; + } } if (!drop && !fn && !signal) { syslog(LOG_NOTICE, "unknown action or signal %s", action);