summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>1998-08-03 03:11:09 +0000
committerhoek <hoek@FreeBSD.org>1998-08-03 03:11:09 +0000
commita70d246f15a7bcad71e59d97539e22a2047a9df9 (patch)
tree1d9c56536ec225cde82cdad572f3d277e8f4803f
parent86f0f2b26f1fccb96ef47d8dfe99bff26e6b8174 (diff)
downloadFreeBSD-src-a70d246f15a7bcad71e59d97539e22a2047a9df9.zip
FreeBSD-src-a70d246f15a7bcad71e59d97539e22a2047a9df9.tar.gz
Ignore (effectively) SIGTSTP if we're already in the process of tstoping.
-rw-r--r--usr.bin/more/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/more/signal.c b/usr.bin/more/signal.c
index aa9d47f..b046d52 100644
--- a/usr.bin/more/signal.c
+++ b/usr.bin/more/signal.c
@@ -211,6 +211,7 @@ psignals()
* Reset the terminal and arrange to repaint the
* screen when we get back to the main command loop.
*/
+ if (sigs & S_STOP) sigs &= ~(S_STOP);
(void)signal(SIGTSTP, stop);
raw_mode(1);
init();
OpenPOWER on IntegriCloud