From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16802 invoked from network); 11 Sep 1998 14:06:26 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 11 Sep 1998 14:06:26 -0000 Received: from gatecoms.gatecom.com (gatecoms.gatecom.com [198.87.96.251]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA19053 for ; Fri, 11 Sep 1998 10:06:28 -0400 Received: (from jsturm@localhost) by gatecoms.gatecom.com (8.8.7/8.8.7) id KAA09225; Fri, 11 Sep 1998 10:04:52 -0400 (EDT) Date: Fri, 11 Sep 1998 10:04:52 -0400 (EDT) From: Jeff Sturm X-Sender: jsturm@gatecoms To: axp-list@redhat.com Subject: Re: ttyS0 versus cua0 In-Reply-To: <19980910080221.A10774@xcski.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 10 Sep 1998, Paul Tomblin wrote: > Now this is weird. After my problems with lightning, and taking apart and > putting back together all the cables and reseating all the boards and > everything, the vt220 terminal I have hung off of ttyS0 wasn't working. Even > a simple experiment like "echo foo > /dev/ttyS0" or "stty -a < /dev/ttyS0" > would just hang forever. But doing the same thing to /dev/cua0 worked fine. > And the modem on /dev/cua1 works fine too. So I changed my inittab (for the > first time in years) to start the getty on cua0 instead of ttyS0, and > everything works. > > Can anybody explain why cua0 would work when ttyS0 doesn't? I thought they > were basically the exact same kernel driver, but the "cua0" had some extra > locking logic for the benefit of uucp? The ttyS0 port by default observes modem control signals, which prevent open() from completing until CD/DTR (IIRC) is raised. The workaround is to use "stty -clocal" which configures the port to ignore modem control. The catch-22 is that "stty -clocal