terminal: always use SA_RESTART with sigaction()

One problem is that for example stdio functions won't restart syscalls
manually, and instead treat EINTR as an error. So passing SA_RESTART is
the only sane thing to do, unless you have special requirements, which
we don't.
This commit is contained in:
wm4 2014-04-26 22:52:26 +02:00
parent 619fa761af
commit d9c3a51d87
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ static int setsigaction(int signo, void (*handler) (int),
else else
sigemptyset(&sa.sa_mask); sigemptyset(&sa.sa_mask);
sa.sa_flags = flags; sa.sa_flags = flags | SA_RESTART;
return sigaction(signo, &sa, NULL); return sigaction(signo, &sa, NULL);
} }