Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/dev/ic pullup 1.59->1.60 (pk)



details:   https://anonhg.NetBSD.org/src/rev/75d56920955d
branches:  netbsd-1-4
changeset: 468427:75d56920955d
user:      perry <perry%NetBSD.org@localhost>
date:      Fri Apr 23 15:07:26 1999 +0000

description:
pullup 1.59->1.60 (pk)

diffstat:

 sys/dev/ic/z8530tty.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r d3225a91a36c -r 75d56920955d sys/dev/ic/z8530tty.c
--- a/sys/dev/ic/z8530tty.c     Fri Apr 23 14:52:32 1999 +0000
+++ b/sys/dev/ic/z8530tty.c     Fri Apr 23 15:07:26 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: z8530tty.c,v 1.59 1999/03/27 01:22:36 wrstuden Exp $   */
+/*     $NetBSD: z8530tty.c,v 1.59.2.1 1999/04/23 15:07:26 perry Exp $  */
 
 /*-
  * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -1579,6 +1579,13 @@
                        timeout(zstty_diag, zst, 60 * hz);
        }
 
+       /* If not yet open, drop the entire buffer content here */
+       if (!ISSET(tp->t_state, TS_ISOPEN)) {
+               get += cc << 1;
+               if (get >= end)
+                       get -= zstty_rbuf_size << 1;
+               cc = 0;
+       }
        while (cc) {
                code = get[0];
                rr1 = get[1];



Home | Main Index | Thread Index | Old Index