From owner-freebsd-stable@FreeBSD.ORG Sun Jan 9 00:45:48 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C88916A4CE for ; Sun, 9 Jan 2005 00:45:48 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32F7A43D39 for ; Sun, 9 Jan 2005 00:45:45 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j090j1mT092540; Sun, 9 Jan 2005 11:15:02 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Sun, 9 Jan 2005 11:15:00 +1030 User-Agent: KMail/1.7.1 References: <40170.4.248.235.201.1104333403.squirrel@4.248.235.201> <20050102.220156.79545944.imp@bsdimp.com> <41E036AF.2030407@bfoz.net> In-Reply-To: <41E036AF.2030407@bfoz.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1453411.0Z7QVr3yON"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200501091115.00779.doconnor@gsoft.com.au> X-Spam-Score: -5.4 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Brandon Fosdick Subject: Re: ucom and sio X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 00:45:48 -0000 --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--