it really belongs only to ttylclose, other than tty
disciplines must not touch t_out & t_raw or
dead tsleep hang can occurse.
* SUCH DAMAGE.
*
* from: @(#)tty.c 7.44 (Berkeley) 5/28/91
* SUCH DAMAGE.
*
* from: @(#)tty.c 7.44 (Berkeley) 5/28/91
- * $Id: tty.c,v 1.23 1994/03/21 18:28:28 ache Exp $
+ * $Id: tty.c,v 1.24 1994/03/21 21:12:55 ache Exp $
- * Handle close() on a tty line: flush and set to initial state,
+ * Handle close() on a tty line: set to initial state,
* bumping generation number so that pending read/write calls
* can detect recycling of the tty.
*/
* bumping generation number so that pending read/write calls
* can detect recycling of the tty.
*/
{
if (constty == tp)
constty = NULL;
{
if (constty == tp)
constty = NULL;
- ttyflush(tp, FREAD|FWRITE);
tp->t_session = NULL;
tp->t_pgrp = NULL;
tp->t_state = 0;
tp->t_session = NULL;
tp->t_pgrp = NULL;
tp->t_state = 0;