Do not increment signals

No need to do a read and a write... and it's declared volatile so maybe
that's even worse? I don't even know, but there's no point.
This commit is contained in:
C. McEnroe 2020-10-27 08:35:29 -04:00
parent 363ab9f834
commit 5b1a5f2876

View File

@ -46,7 +46,7 @@ struct timespec resetInterval = { .tv_sec = 15 * 60 };
static volatile sig_atomic_t signals[NSIG];
static void signalHandler(int signal) {
signals[signal]++;
signals[signal] = 1;
}
static int parseConfig(const char *path) {