Commit | Line | Data |
---|---|---|
1 | #ifndef lint | |
2 | static 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 | ||
9 | wwsuspend() | |
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 | } |