summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/syndaemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syndaemon.c b/tools/syndaemon.c
index f716827..575bc6c 100644
--- a/tools/syndaemon.c
+++ b/tools/syndaemon.c
@@ -173,8 +173,8 @@ install_signal_handler(void)
sigemptyset(&set);
act.sa_handler = signal_handler;
act.sa_mask = set;
-#ifdef SA_ONESHOT
- act.sa_flags = SA_ONESHOT;
+#ifdef SA_RESETHAND
+ act.sa_flags = SA_RESETHAND;
#else
act.sa_flags = 0;
#endif