From 59eb0c372b615fce5039e69b5067adc0efe5b64b Mon Sep 17 00:00:00 2001 From: Luca Castagnini Date: Wed, 25 Oct 2017 12:14:45 +0200 Subject: Replace SA_ONESHOT with the more portable SA_RESETHAND. Signed-off-by: Peter Hutterer --- tools/syndaemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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 -- cgit v1.2.3