118742Sedward /* 2*33514Sbostic * Copyright (c) 1983 Regents of the University of California. 3*33514Sbostic * All rights reserved. 4*33514Sbostic * 5*33514Sbostic * Redistribution and use in source and binary forms are permitted 6*33514Sbostic * provided that this notice is preserved and that due credit is given 7*33514Sbostic * to the University of California at Berkeley. The name of the University 8*33514Sbostic * may not be used to endorse or promote products derived from this 9*33514Sbostic * software without specific prior written permission. This software 10*33514Sbostic * is provided ``as is'' without express or implied warranty. 1118742Sedward */ 1218742Sedward 13*33514Sbostic #ifndef lint 14*33514Sbostic static char sccsid[] = "@(#)wwsuspend.c 3.8 (Berkeley) 02/21/88"; 15*33514Sbostic #endif /* not lint */ 16*33514Sbostic 1713960Sedward #include "ww.h" 1814649Sedward #include "tt.h" 1916398Sedward #include <sys/signal.h> 2013960Sedward 2113960Sedward wwsuspend() 2213960Sedward { 2315365Sedward int (*oldsig)(); 2413960Sedward 2515365Sedward oldsig = signal(SIGTSTP, SIG_IGN); 2613960Sedward wwend(); 2715365Sedward (void) signal(SIGTSTP, SIG_DFL); 2814412Sedward (void) kill(0, SIGTSTP); 2915365Sedward (void) signal(SIGTSTP, SIG_IGN); 3017409Sedward (void) wwsettty(0, &wwnewtty, &wwoldtty); 3114649Sedward (*tt.tt_init)(); 3214412Sedward wwredraw(); 3315365Sedward (void) signal(SIGTSTP, oldsig); 3413960Sedward } 35