diff options
author | peter <peter@FreeBSD.org> | 1999-02-04 03:54:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-02-04 03:54:51 +0000 |
commit | ad7382e4384ac5df30e8d2965aa57597f20d74a3 (patch) | |
tree | b461e69afdf014ffc8e48d715c7b521b7c751e49 /contrib | |
parent | 2c1624cfdc9272b50979600915fb74c74288b34d (diff) | |
download | FreeBSD-src-ad7382e4384ac5df30e8d2965aa57597f20d74a3.zip FreeBSD-src-ad7382e4384ac5df30e8d2965aa57597f20d74a3.tar.gz |
Restore rev 1.2 after it got spammed in rev 1.3 and 1.4.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/texinfo/info/signals.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/texinfo/info/signals.c b/contrib/texinfo/info/signals.c index b93a585..16e87f0 100644 --- a/contrib/texinfo/info/signals.c +++ b/contrib/texinfo/info/signals.c @@ -66,7 +66,7 @@ typedef RETSIGTYPE signal_handler (); static RETSIGTYPE info_signal_handler (); static signal_handler *old_TSTP, *old_TTOU, *old_TTIN; -static signal_handler *old_WINCH, *old_INT; +static signal_handler *old_WINCH, *old_INT, *old_CONT; void initialize_info_signal_handler () @@ -79,6 +79,9 @@ initialize_info_signal_handler () #if defined (SIGWINCH) old_WINCH = (signal_handler *) signal (SIGWINCH, info_signal_handler); +#if defined (SIGCONT) + old_CONT = (signal_handler *) signal (SIGCONT, info_signal_handler); +#endif /* SIGCONT */ #endif #if defined (SIGINT) @@ -146,6 +149,15 @@ info_signal_handler (sig) break; #if defined (SIGWINCH) +#if defined(SIGCONT) + case SIGCONT: + if (old_CONT) + (void)(old_CONT)(sig); + /* pretend a SIGWINCH in case the terminal window size has changed + while we've been asleep */ + /* FALLTROUGH */ +#endif /* defined(SIGCONT) */ + case SIGWINCH: { /* Turn off terminal IO, tell our parent that the window has changed, |