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

This commit is contained in:
Andrey A. Chernov 1995-08-04 11:05:29 +00:00
parent bd13cecc22
commit d8af1fd8ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9902

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