summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/terminal-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c
index 9b1e3d21fe..844054e1bd 100644
--- a/osdep/terminal-unix.c
+++ b/osdep/terminal-unix.c
@@ -532,7 +532,7 @@ static int setsigaction(int signo, void (*handler) (int),
else
sigemptyset(&sa.sa_mask);
- sa.sa_flags = flags;
+ sa.sa_flags = flags | SA_RESTART;
return sigaction(signo, &sa, NULL);
}