summaryrefslogtreecommitdiff
path: root/llmnrd.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-29 10:13:26 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-29 10:13:26 +0200
commitb8bbf5de3594de63b241bf45acdc03ab4bb7eb8d (patch)
tree4e1b40bcae7dc2ca42d9717be7cc309014faa6f1 /llmnrd.c
parent292acf79ec0d1b9321a191ef7791628248ff89a1 (diff)
llmnrd: Use SA_RESTART for installed signal handlers
Make certain syscalls restartable after signal handler. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnrd.c')
-rw-r--r--llmnrd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/llmnrd.c b/llmnrd.c
index e73f5f3..ab1a512 100644
--- a/llmnrd.c
+++ b/llmnrd.c
@@ -98,6 +98,7 @@ static void register_signal(int sig, void (*handler)(int))
saction.sa_handler = handler;
saction.sa_mask = block_mask;
+ saction.sa_flags = SA_RESTART;
if (sigaction(sig, &saction, NULL) != 0) {
log_err("Failed to register signal handler for %s (%d)\n",