Remove ttywflush from slclose, it cause
authorAndrey Chernov <ache@FreeBSD.org>
Mon, 21 Mar 1994 21:29:50 +0000 (21:29 +0000)
committerAndrey Chernov <ache@FreeBSD.org>
Mon, 21 Mar 1994 21:29:50 +0000 (21:29 +0000)
dead hang in tsleep when carier dropped.
Moreover, it is incorrect to deal anything with t_out & t_raw here
(like ttywflush does), we already change line discipline.

sys/net/if_sl.c

index aca3b67..81688a8 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *     from: @(#)if_sl.c       7.22 (Berkeley) 4/20/91
  * SUCH DAMAGE.
  *
  *     from: @(#)if_sl.c       7.22 (Berkeley) 4/20/91
- *     $Id: if_sl.c,v 1.7 1993/12/20 19:31:32 wollman Exp $
+ *     $Id: if_sl.c,v 1.8 1994/03/02 20:28:55 guido Exp $
  */
 
 /*
  */
 
 /*
@@ -65,7 +65,7 @@
  * interrupts and network activity; thus, splimp must be >= spltty.
  */
 
  * interrupts and network activity; thus, splimp must be >= spltty.
  */
 
-/* $Id: if_sl.c,v 1.7 1993/12/20 19:31:32 wollman Exp $ */
+/* $Id: if_sl.c,v 1.8 1994/03/02 20:28:55 guido Exp $ */
 /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */
 
 #include "sl.h"
 /* from if_sl.c,v 1.11 84/10/04 12:54:47 rick Exp */
 
 #include "sl.h"
@@ -332,7 +332,6 @@ slclose(tp)
        register struct sl_softc *sc;
        int s;
 
        register struct sl_softc *sc;
        int s;
 
-       ttywflush(tp);
        s = splimp();           /* actually, max(spltty, splnet) */
        tp->t_line = 0;
        sc = (struct sl_softc *)tp->t_sc;
        s = splimp();           /* actually, max(spltty, splnet) */
        tp->t_line = 0;
        sc = (struct sl_softc *)tp->t_sc;