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:
parent
363ab9f834
commit
5b1a5f2876
2
daemon.c
2
daemon.c
@ -46,7 +46,7 @@ struct timespec resetInterval = { .tv_sec = 15 * 60 };
|
|||||||
|
|
||||||
static volatile sig_atomic_t signals[NSIG];
|
static volatile sig_atomic_t signals[NSIG];
|
||||||
static void signalHandler(int signal) {
|
static void signalHandler(int signal) {
|
||||||
signals[signal]++;
|
signals[signal] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int parseConfig(const char *path) {
|
static int parseConfig(const char *path) {
|
||||||
|
Loading…
Reference in New Issue
Block a user