about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-10-27 08:35:29 -0400
committerJune McEnroe <june@causal.agency>2020-10-27 08:36:25 -0400
commit5b1a5f2876b8c70ee7bf3eab8570a971697f542b (patch)
treee79a73fd63863d04855ecd7f385e363962ab5b46
parentOnly look up group if one is named (diff)
downloadcatsit-5b1a5f2876b8c70ee7bf3eab8570a971697f542b.tar.gz
catsit-5b1a5f2876b8c70ee7bf3eab8570a971697f542b.zip
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.
Diffstat (limited to '')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 490e13f..15c278d 100644
--- a/daemon.c
+++ b/daemon.c
@@ -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) {