summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuca Castagnini <ilfigliodellaparolaavuoto@gmail.com>2017-10-25 12:14:45 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2017-10-26 08:41:12 +1000
commit59eb0c372b615fce5039e69b5067adc0efe5b64b (patch)
treedff74c38e7edf2b93949fd0961fbac459556f053 /tools
parent6d3749105d964da5b4e534206fdb47f5ff8a697f (diff)
Replace SA_ONESHOT with the more portable SA_RESETHAND.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
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