Date: Sun, 9 Jan 2005 11:15:00 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable@freebsd.org Cc: Brandon Fosdick <bfoz@bfoz.net> Subject: Re: ucom and sio Message-ID: <200501091115.00779.doconnor@gsoft.com.au> In-Reply-To: <41E036AF.2030407@bfoz.net> References: <40170.4.248.235.201.1104333403.squirrel@4.248.235.201> <20050102.220156.79545944.imp@bsdimp.com> <41E036AF.2030407@bfoz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1453411.0Z7QVr3yON Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 9 Jan 2005 06:08, Brandon Fosdick wrote: > If I use tip it works fine. But if I try to write a C program that opens > the device it hangs on open, unless I set it to non-blocking. Then open > returns and I set it back to blocking then try a read or a write. read() > blocks regardless of whether any data has been sent by the other device > (a terminal app on my palm pilot for debugging purposes) and write() > blocks without sending anything. If I set the device to be non-blocking > read() will return the data that was sent by the other device, but > write() will still block. Is it blocking waiting for carrier detect to come up? Try using the cuaNN device instead. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1453411.0Z7QVr3yON Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBB4H6M5ZPcIHs/zowRAuRhAJ9GnNxHIjQQ4TduSg9LecWHERJuMgCfR9Bg fpCuQaFRgabm3WvZfDzE0kc= =kMfy -----END PGP SIGNATURE----- --nextPart1453411.0Z7QVr3yON--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501091115.00779.doconnor>