diff options
author | ache <ache@FreeBSD.org> | 1995-08-04 11:05:29 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-04 11:05:29 +0000 |
commit | 2a5321caceacaee1220cad126050200751ee27f6 (patch) | |
tree | 09c9f2489370d483796fea56d5060e1779f888e5 /lib | |
parent | 078a33dc42609429fe6fb2107796b22c0dfcfbe3 (diff) | |
download | FreeBSD-src-2a5321caceacaee1220cad126050200751ee27f6.zip FreeBSD-src-2a5321caceacaee1220cad126050200751ee27f6.tar.gz |
Add SA_RESTART to ^Z reaction, EIO was returned in other case
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libncurses/lib_tstp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libncurses/lib_tstp.c b/lib/libncurses/lib_tstp.c index 272c274..4412dcb 100644 --- a/lib/libncurses/lib_tstp.c +++ b/lib/libncurses/lib_tstp.c @@ -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); |