summaryrefslogtreecommitdiff
path: root/base/pollevent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/pollevent.cc')
-rw-r--r--base/pollevent.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/pollevent.cc b/base/pollevent.cc
index 619bda887..60a20bd2e 100644
--- a/base/pollevent.cc
+++ b/base/pollevent.cc
@@ -223,14 +223,14 @@ PollQueue::setupHandler()
act.sa_handler = handleIO;
sigemptyset(&act.sa_mask);
- act.sa_flags = 0;
+ act.sa_flags = SA_RESTART;
if (sigaction(SIGIO, &act, &oldio) == -1)
panic("could not do sigaction");
act.sa_handler = handleALRM;
sigemptyset(&act.sa_mask);
- act.sa_flags = 0;
+ act.sa_flags = SA_RESTART;
if (sigaction(SIGALRM, &act, &oldalrm) == -1)
panic("could not do sigaction");