mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Add SA_RESTART to ^Z reaction, EIO was returned in other case
This commit is contained in:
parent
bd13cecc22
commit
d8af1fd8ae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9902
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue