From d2cf4dd901364d748ed595fd8a011505f7bf4f6d Mon Sep 17 00:00:00 2001 From: Andrey Chernov Date: Mon, 21 Mar 1994 21:50:30 +0000 Subject: [PATCH] Remove ttyflush from ttyclose, it really belongs only to ttylclose, other than tty disciplines must not touch t_out & t_raw or dead tsleep hang can occurse. --- sys/kern/tty.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 4360945a43..a13afcba3f 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -32,7 +32,7 @@ * 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 $ */ #include "param.h" @@ -796,7 +796,7 @@ ttylclose(tp, flag) } /* - * 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. */ @@ -806,7 +806,6 @@ ttyclose(tp) { if (constty == tp) constty = NULL; - ttyflush(tp, FREAD|FWRITE); tp->t_session = NULL; tp->t_pgrp = NULL; tp->t_state = 0; -- 2.20.1