include var.h and lcmd.c only in some of the parser?.c
[unix-history] / usr / src / usr.bin / window / wwsuspend.c
CommitLineData
bfbd46c7 1#ifndef lint
57fc9db6 2static char *sccsid = "@(#)wwsuspend.c 3.3 83/11/02";
bfbd46c7
EW
3#endif
4
5#include "ww.h"
e908bfac 6#include "tt.h"
bfbd46c7
EW
7#include <signal.h>
8
bfbd46c7
EW
9wwsuspend()
10{
57fc9db6 11 int (*oldsig)();
bfbd46c7 12
57fc9db6 13 oldsig = signal(SIGTSTP, SIG_IGN);
bfbd46c7 14 wwend();
57fc9db6 15 (void) signal(SIGTSTP, SIG_DFL);
96f35979 16 (void) kill(0, SIGTSTP);
57fc9db6 17 (void) signal(SIGTSTP, SIG_IGN);
96f35979 18 (void) wwsettty(0, &wwnewtty);
e908bfac 19 (*tt.tt_init)();
96f35979 20 wwredraw();
57fc9db6 21 (void) signal(SIGTSTP, oldsig);
bfbd46c7 22}