version 1.12, 2001/07/18 17:17:39 |
version 1.13, 2001/09/04 23:35:59 |
|
|
void |
void |
onsusp () |
onsusp () |
{ |
{ |
|
sigset_t mask; |
|
|
/* ignore SIGTTOU so we don't get stopped if csh grabs the tty */ |
/* ignore SIGTTOU so we don't get stopped if csh grabs the tty */ |
signal(SIGTTOU, SIG_IGN); |
signal(SIGTTOU, SIG_IGN); |
reset_tty (); |
reset_tty (); |
|
|
signal(SIGTTOU, SIG_DFL); |
signal(SIGTTOU, SIG_DFL); |
/* Send the TSTP signal to suspend our process group */ |
/* Send the TSTP signal to suspend our process group */ |
signal(SIGTSTP, SIG_DFL); |
signal(SIGTSTP, SIG_DFL); |
sigsetmask(0); |
sigemptyset(&mask); |
|
sigprocmask(SIG_SETMASK, &mask, NULL); |
kill (0, SIGTSTP); |
kill (0, SIGTSTP); |
/* Pause for station break */ |
/* Pause for station break */ |
|
|