diff options
author | Luca Castagnini <ilfigliodellaparolaavuoto@gmail.com> | 2017-10-25 12:14:45 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-10-26 08:41:12 +1000 |
commit | 59eb0c372b615fce5039e69b5067adc0efe5b64b (patch) | |
tree | dff74c38e7edf2b93949fd0961fbac459556f053 | |
parent | 6d3749105d964da5b4e534206fdb47f5ff8a697f (diff) |
Replace SA_ONESHOT with the more portable SA_RESETHAND.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | tools/syndaemon.c | 4 |
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 |