diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index 7bb01495b9..338ff677d1 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -518,7 +518,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); }