Subject: kern/14415: TIOCDRAIN not handled in linux emulation
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tommy@gatespace.com>
List: netbsd-bugs
Date: 10/31/2001 23:54:22
>Number:         14415
>Category:       kern
>Synopsis:       TIOCDRAIN not handled in Linux emulation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 31 15:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tommy Bohlin
>Release:        NetBSD 1.5.1
>Organization:
Tommy Bohlin                           office +46 31 7439815
tommy@gatespace.com                    mobile +46 707 786400
Gatespace AB, Göteborg, Sweden            fax +46 31 7116416
>Environment:
i386, cvs current 2001-10-31
>Description:
>How-To-Repeat:
>Fix:
The following patch provides a workaround:

Index: com.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/ic/com.c,v
retrieving revision 1.189
diff -u -r1.189 com.c
--- com.c       2001/09/17 02:47:13     1.189
+++ com.c       2001/10/31 23:43:59
@@ -1030,6 +1030,9 @@
        if (error >= 0)
                return (error);
 
+       if (cmd == TIOCDRAIN)
+               return (error);
+
        error = 0;
 
        s = splserial();
>Release-Note:
>Audit-Trail:
>Unformatted: