Skip site navigation (1)Skip section navigation (2)
Date:      08 Oct 2001 11:17:15 +0200
From:      Dmitry Karasik <dmitry@karasik.eu.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        <freebsd-current@FreeBSD.ORG>
Subject:   Re: /dev/cuaa broken ?
Message-ID:  <uzo72h4o4.fsf@karasik.eu.org>
In-Reply-To: Bruce Evans's message of "Mon, 8 Oct 2001 18:06:33 %2B1000 (EST)"
References:  <20011008163346.C14481-100000@delplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

	Hi Bruce!

On 08 Oct 01 at 18:06, "Bruce" (Bruce Evans) wrote:

Thanks Bruce

Further investigation revealed the following fact, which
might be relevant. If a write of 1 byte is issued, everything
is O.K - contrary to when more than 1 byte is written, there
is a problem. It was noticed first with cu, when I typed
a command from keyboard and copy-pasted it after and received 
different results.

As for now, we have fixed our code in such a fashion
that now it writes commands by 1 byte - but since the 
exact problem cause is unknown, be it dtr state or 
something else, it might be still a hack, that wouldn't work
in different circumstances, on a faster machine for example.

If that bug makes a particular interest to you, I can make
an account for you on that box.

 Bruce> I haven't found the bug yet.  It was first fixed relatively
 Bruce> recently in rev.1.152 (1996/11/30) of sio.c.  Until then, you had
 Bruce> to have waits in your program or dtrwait large enough to avoid loss
 Bruce> of data on close.  But dtrwait didn't help for the ioctls that need
 Bruce> to wait for output to drain.

 Bruce> Bruce

-- 
Sincerely,
	Dmitry

--- www.karasik.eu.org ---

Life ain't fair, but the root password helps.
                      - BOFH




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?uzo72h4o4.fsf>