Add SA_RESTART to ^Z reaction, EIO was returned in other case
This commit is contained in:
parent
078a33dc42
commit
2a5321cace
@ -33,6 +33,9 @@ sigset_t mask;
|
||||
act.sa_handler = SIG_DFL;
|
||||
sigemptyset(&act.sa_mask);
|
||||
act.sa_flags = 0;
|
||||
#ifdef SA_RESTART
|
||||
act.sa_flags |= SA_RESTART;
|
||||
#endif
|
||||
sigaction(SIGTSTP, &act, &oact);
|
||||
kill(getpid(), SIGTSTP);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user