summaryrefslogtreecommitdiffstats
path: root/lib/libncurses
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-04 11:05:29 +0000
committerache <ache@FreeBSD.org>1995-08-04 11:05:29 +0000
commit2a5321caceacaee1220cad126050200751ee27f6 (patch)
tree09c9f2489370d483796fea56d5060e1779f888e5 /lib/libncurses
parent078a33dc42609429fe6fb2107796b22c0dfcfbe3 (diff)
downloadFreeBSD-src-2a5321caceacaee1220cad126050200751ee27f6.zip
FreeBSD-src-2a5321caceacaee1220cad126050200751ee27f6.tar.gz
Add SA_RESTART to ^Z reaction, EIO was returned in other case
Diffstat (limited to 'lib/libncurses')
-rw-r--r--lib/libncurses/lib_tstp.c3
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);
OpenPOWER on IntegriCloud