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