Re: after login through serial line, open(2) on /dev/tty hangs

2015-05-27 Thread Ed Schouten
2015-05-27 8:01 GMT+02:00 Matthias Apitz g...@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 e...@nuxi.nl
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: after login through serial line, open(2) on /dev/tty hangs

2015-05-27 Thread Matthias Apitz
El día Wednesday, May 27, 2015 a las 11:57:56AM +0200, Ed Schouten escribió:

 2015-05-27 8:01 GMT+02:00 Matthias Apitz g...@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.
 

Thanks! it works with 3wire.9600 and ttyU0; this message was now
written on the VT102 with mutt and vim :-)

matthias

-- 
Matthias Apitz, g...@unixarea.de, http://www.unixarea.de/ +49-170-4527211
+49-176-38902045
Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände 
menschlich bilden.
Si el hombre es formado por las circunstancias entonces es necesario formar 
humanamente
las circunstancias, Karl Marx in Die heilige Familie / La sagrada familia (MEW 
2, 138)
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org