Commit | Line | Data |
---|---|---|
bfbd46c7 | 1 | #ifndef lint |
60de5df9 | 2 | static char sccsid[] = "@(#)wwsuspend.c 3.7 %G%"; |
bfbd46c7 EW |
3 | #endif |
4 | ||
60de5df9 EW |
5 | /* |
6 | * Copyright (c) 1983 Regents of the University of California, | |
7 | * All rights reserved. Redistribution permitted subject to | |
8 | * the terms of the Berkeley Software License Agreement. | |
9 | */ | |
10 | ||
bfbd46c7 | 11 | #include "ww.h" |
e908bfac | 12 | #include "tt.h" |
7c38ad4d | 13 | #include <sys/signal.h> |
bfbd46c7 | 14 | |
bfbd46c7 EW |
15 | wwsuspend() |
16 | { | |
57fc9db6 | 17 | int (*oldsig)(); |
bfbd46c7 | 18 | |
57fc9db6 | 19 | oldsig = signal(SIGTSTP, SIG_IGN); |
bfbd46c7 | 20 | wwend(); |
57fc9db6 | 21 | (void) signal(SIGTSTP, SIG_DFL); |
96f35979 | 22 | (void) kill(0, SIGTSTP); |
57fc9db6 | 23 | (void) signal(SIGTSTP, SIG_IGN); |
4cbd8755 | 24 | (void) wwsettty(0, &wwnewtty, &wwoldtty); |
e908bfac | 25 | (*tt.tt_init)(); |
96f35979 | 26 | wwredraw(); |
57fc9db6 | 27 | (void) signal(SIGTSTP, oldsig); |
bfbd46c7 | 28 | } |