|
|
1.1 ! root 1: #ifndef lint ! 2: static char sccsid[] = "@(#)wwsuspend.c 3.7 4/24/85"; ! 3: #endif ! 4: ! 5: /* ! 6: * Copyright (c) 1983 Regents of the University of California, ! 7: * All rights reserved. Redistribution permitted subject to ! 8: * the terms of the Berkeley Software License Agreement. ! 9: */ ! 10: ! 11: #include "ww.h" ! 12: #include "tt.h" ! 13: #include <sys/signal.h> ! 14: ! 15: wwsuspend() ! 16: { ! 17: int (*oldsig)(); ! 18: ! 19: oldsig = signal(SIGTSTP, SIG_IGN); ! 20: wwend(); ! 21: (void) signal(SIGTSTP, SIG_DFL); ! 22: (void) kill(0, SIGTSTP); ! 23: (void) signal(SIGTSTP, SIG_IGN); ! 24: (void) wwsettty(0, &wwnewtty, &wwoldtty); ! 25: (*tt.tt_init)(); ! 26: wwredraw(); ! 27: (void) signal(SIGTSTP, oldsig); ! 28: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.