fix SIGTSTP for new signals
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Sat, 25 Jun 1983 17:40:16 +0000 (09:40 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Sat, 25 Jun 1983 17:40:16 +0000 (09:40 -0800)
SCCS-vsn: old/more/more.c 4.12

usr/src/old/more/more.c

index d4eb516..f3e80ab 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)more.c      4.11 (Berkeley) 83/03/17";
+static char *sccsid = "@(#)more.c      4.12 (Berkeley) 83/06/25";
 
 /*
 ** more.c - General purpose tty output filter and file perusal program
 
 /*
 ** more.c - General purpose tty output filter and file perusal program
@@ -1600,6 +1600,8 @@ onsusp ()
     reset_tty ();
     fflush (stdout);
     /* Send the TSTP signal to suspend our process group */
     reset_tty ();
     fflush (stdout);
     /* Send the TSTP signal to suspend our process group */
+    signal(SIGTSTP, SIG_DFL);
+    sigsetmask(0);
     kill (0, SIGTSTP);
     /* Pause for station break */
 
     kill (0, SIGTSTP);
     /* Pause for station break */