118742Sedward /* 2*62479Sbostic * Copyright (c) 1983, 1993 3*62479Sbostic * The Regents of the University of California. All rights reserved. 433514Sbostic * 542954Sbostic * This code is derived from software contributed to Berkeley by 642954Sbostic * Edward Wang at The University of California, Berkeley. 742954Sbostic * 842835Sbostic * %sccs.include.redist.c% 918742Sedward */ 1018742Sedward 1133514Sbostic #ifndef lint 12*62479Sbostic static char sccsid[] = "@(#)wwsuspend.c 8.1 (Berkeley) 06/06/93"; 1333514Sbostic #endif /* not lint */ 1433514Sbostic 1513960Sedward #include "ww.h" 1614649Sedward #include "tt.h" 1716398Sedward #include <sys/signal.h> 1813960Sedward wwsuspend()1913960Sedwardwwsuspend() 2013960Sedward { 2139255Sbostic sig_t oldsig; 2213960Sedward 2315365Sedward oldsig = signal(SIGTSTP, SIG_IGN); 2455911Sedward wwend(0); 2515365Sedward (void) signal(SIGTSTP, SIG_DFL); 2614412Sedward (void) kill(0, SIGTSTP); 2715365Sedward (void) signal(SIGTSTP, SIG_IGN); 2856710Sedward wwstart(); 2915365Sedward (void) signal(SIGTSTP, oldsig); 3013960Sedward } 31