SCCS-vsn: lib/libcurses/tstp.c 1.3
# ifdef SIGTSTP
SGTTY tty;
# ifdef SIGTSTP
SGTTY tty;
# ifdef DEBUG
if (outf)
fflush(outf);
# ifdef DEBUG
if (outf)
fflush(outf);
mvcur(0, COLS - 1, LINES - 1, 0);
endwin();
fflush(stdout);
mvcur(0, COLS - 1, LINES - 1, 0);
endwin();
fflush(stdout);
+ /* reset signal handler so kill below stops us */
+ signal(SIGTSTP, SIG_DFL);
+#define mask(s) (1 << ((s)-1))
+ omask = sigsetmask(sigblock(0) &~ mask(SIGTSTP));
+ sigblock(mask(SIGTSTP));
signal(SIGTSTP, tstp);
_tty = tty;
stty(_tty_ch, &_tty);
signal(SIGTSTP, tstp);
_tty = tty;
stty(_tty_ch, &_tty);