diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-04-29 10:13:26 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-04-29 10:13:26 +0200 |
commit | b8bbf5de3594de63b241bf45acdc03ab4bb7eb8d (patch) | |
tree | 4e1b40bcae7dc2ca42d9717be7cc309014faa6f1 | |
parent | 292acf79ec0d1b9321a191ef7791628248ff89a1 (diff) |
llmnrd: Use SA_RESTART for installed signal handlers
Make certain syscalls restartable after signal handler.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | llmnrd.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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", |