summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 38ed74fbcb..654b93d79c 100644
--- a/util.c
+++ b/util.c
@@ -488,6 +488,7 @@ int reset_all_signal_handlers(void) {
zero(sa);
sa.sa_handler = SIG_DFL;
+ sa.sa_flags = SA_RESTART;
/* On Linux the first two RT signals are reserved by
* glibc, and sigaction() will return EINVAL for them. */