Skip site navigation (1)Skip section navigation (2)
Date:      6 Apr 2000 23:39:38 +0200
From:      naddy@mips.rhein-neckar.de (Christian Weisgerber)
To:        freebsd-questions@freebsd.org
Subject:   Re: Serial->serial connection (sio0 -> sio1)
Message-ID:  <8cj06q$1g7v$1@bigeye.rhein-neckar.de>
References:  <Pine.BSF.4.21.0004011859490.310-100000@thelab.hub.org> <38E6E5EA.22A1038F@gorean.org> <8c7bgc$umu$1@bigeye.rhein-neckar.de> <38E75E14.2E0A7BF1@tdx.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Karl Pielorz <kpielorz@tdx.co.uk> wrote:

> I've seen something that could, possibly be 'similar'... If I use 'ttyd0' as a
> terminal in /etc/ttys - it doesn't work (or, rather - It does "appear" to work
> once I have COMCONSOLE selected)...
> 
> _BUT_ if I use 'cuaa0' in /etc/ttys - I get a working terminal on COM1 -
> regardless...

Uh, don't do that.

> Maybe ttydX is more sensitive about handshaking / carrier detect or something?

Yes, that's the point for modem use. Typically, when you open ttydX
the open() call blocks until DCD is on. cuaX doesn't block. This
also allows to dial in and out over the same port. getty(8) opens
the tty and blocks until a call comes in. Meanwhile you can still
open the corresponding cua device and dial out.

If setting CLOCAL in the getty configuration doesn't stop it from
blocking you can still wire DCD to active.

-- 
Christian "naddy" Weisgerber                  naddy@mips.rhein-neckar.de



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cj06q$1g7v$1>