summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-28 01:53:39 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-28 01:53:39 +0100
commit431c32bf7976add2297c71f482cb2669765ed616 (patch)
treeebcbdbb471bb0d600b9848554ad859db12711abf
parent85f136b5d09168a7e4fd2ad27ef81dbe2d356c07 (diff)
when resetting signal handlers, set them to SA_RESTART
-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. */