Add SA_RESTART to ^Z reaction, EIO was returned in other case

This commit is contained in:
ache 1995-08-04 11:05:29 +00:00
parent 078a33dc42
commit 2a5321cace

View File

@ -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);