fts_statb -> fts_statp
[unix-history] / usr / src / usr.bin / window / wwsuspend.c
CommitLineData
60de5df9 1/*
46e9ea25
KB
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved.
4 *
3dd3a9e5
KB
5 * This code is derived from software contributed to Berkeley by
6 * Edward Wang at The University of California, Berkeley.
7 *
87f529ec 8 * %sccs.include.redist.c%
60de5df9
EW
9 */
10
46e9ea25 11#ifndef lint
a50b4763 12static char sccsid[] = "@(#)wwsuspend.c 3.15 (Berkeley) %G%";
46e9ea25
KB
13#endif /* not lint */
14
bfbd46c7 15#include "ww.h"
e908bfac 16#include "tt.h"
7c38ad4d 17#include <sys/signal.h>
bfbd46c7 18
a50b4763 19void
bfbd46c7
EW
20wwsuspend()
21{
981fd33c 22 sig_t oldsig;
bfbd46c7 23
57fc9db6 24 oldsig = signal(SIGTSTP, SIG_IGN);
bfbd46c7 25 wwend();
57fc9db6 26 (void) signal(SIGTSTP, SIG_DFL);
96f35979 27 (void) kill(0, SIGTSTP);
57fc9db6 28 (void) signal(SIGTSTP, SIG_IGN);
9de86788 29 (void) wwsettty(0, &wwnewtty);
ab8b3b31
EW
30 xxstart();
31 wwredraw(); /* XXX, clears the screen twice */
57fc9db6 32 (void) signal(SIGTSTP, oldsig);
bfbd46c7 33}