[489] in Zephyr_Bugs

home help back first fref pref prev next nref lref last post

zwgc -ttymode lossage (gets SIGTTOU)

daemon@ATHENA.MIT.EDU (Chris Metcalf)
Tue Jun 15 10:35:35 1993

Date: Tue, 15 Jun 93 10:35:31 -0400
From: metcalf@catfish.LCS.MIT.EDU (Chris Metcalf)
To: zephyr-bugs@Athena.MIT.EDU

zwgc -ttymode doesn't work in the source currently on Athena (or
in the last full distribution, for that matter).  As soon as it 
tries to write to the terminal, it gets a SIGTTOU, and suspends.
To make the right thing happen, SIGTTOU needs to be ignored.

Chris

*** 1.1	1993/06/15 14:31:02
--- main.c	1993/06/15 14:31:51
***************
*** 377,382 ****
--- 377,383 ----
        signal(SIGINT, SIG_IGN);
        signal(SIGTSTP, SIG_IGN);
        signal(SIGQUIT, SIG_IGN);
+       signal(SIGTTOU, SIG_IGN);
     } else {
        /* clean up on SIGINT.  exiting on logout is the user's problem, now. */
        signal(SIGINT, signal_exit);

home help back first fref pref prev next nref lref last post