Date: Tue, 06 Mar 2007 15:54:32 -0600 From: Dan D Niles <dan@more.net> To: freebsd-questions@FreeBSD.org Subject: Re: Serial Port Problems (Solved) Message-ID: <1173218072.5629.3.camel@jane.spg.more.net> In-Reply-To: <1172784439.14922.47.camel@jane.spg.more.net> References: <1172784439.14922.47.camel@jane.spg.more.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2007-03-01 at 15:27 -0600, Dan D Niles wrote:
> If I disconnect and come back later
> (sometimes), or if I hit return without entering a login name (always)
> it starts spitting out junk like:
>
> nooo~:Woo{;>6(|uww~now~nou})|t}}t9-
I found a solution, although I'm not sure why it works.
When you just hit enter getty goes back to the beginning of its loop.
This also happens if you enter a name starting with "-" or consisting of
just spaces. These also causes the output to become garbled.
At the beginning of the loop it calls setttymode(0). If I insert a
sleep(1) before this call, everything works correctly. If I insert the
sleep after that, the output still gets garbled.
Like I said, I don't know why it works, but it does.
I don't think a short delay is unreasonable after entering invalid or no
information. I am going to submit a PR with a patch.
Dan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1173218072.5629.3.camel>
