Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2015 11:57:56 +0200
From:      Ed Schouten <ed@nuxi.nl>
To:        Matthias Apitz <guru@unixarea.de>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: after login through serial line, open(2) on /dev/tty hangs
Message-ID:  <CABh_MKkkdWUCP5bxTyR8H7edirf8tWfesNft2vQnOsNR%2Br14VQ@mail.gmail.com>
In-Reply-To: <20150527060113.GA2166@c720-r276659>
References:  <20150527060113.GA2166@c720-r276659>

next in thread | previous in thread | raw e-mail | index | archive | help
2015-05-27 8:01 GMT+02:00 Matthias Apitz <guru@unixarea.de>:
> The VT102 is connected through an USB-serial adapter and getty spawns
> nicely login: to /dev/cuaU0.

/dev/cua* should be used to 'call out' on a TTY. They're not intended
to run gettys on. Please /dev/ttyU0 instead. :-)

I suspect that opening /dev/tty blocks, for the reason that the
terminal you use doesn't provide any modem status lines. /dev/cua*
'works' in your case, because those device nodes ignore modem status.
You can disable checking for this by using "3wire.9600" instead of
"std.9600" in /etc/ttys. See gettytab(5) for more details.

-- 
Ed Schouten <ed@nuxi.nl>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKkkdWUCP5bxTyR8H7edirf8tWfesNft2vQnOsNR%2Br14VQ>