termios/PTY problem

Thomas Doerfler Thomas.Doerfler at imd-systems.de
Tue Sep 10 07:28:51 UTC 2002

Hi Till,

I think you are right, currently there is no 
support in termios for line conditions like 
hangup, ring etc. And it would be good to have 
that support in termios.

Some time back Eric Norum memntioned, that he 
intends to port the FreeBSD termios system to 
RTEMS, I guess this would contain a signalling 
mechanism aswell, but I don't know how far he got 
that way.

Any changes/additions to termios should (IMHO) be 
made in a compatible way, so that existing 
drivers based on termios need not be modified.

	Thomas Doerfler.

> Hi.
> I don't like the way the PTY driver reacts to the
> network connection being closed (from the remote
> side).
> Currently, it just closes stdin&friends and deletes
> the task that is using the PTY. This gives that
> task no chance to cleanup resources.
> IMO, it should rather propagate an EOF condition
> upstream.
> Unfortunately, however, the termios driver seems
> not to be capable to convey EOF detected by
> a lowlevel driver to the caller of rtems_termios_read()
> and rtems_termios_write() etc.
> Shouldn't we fix this? I have a patch for pty to hack
> around this (it also does NAWS and provides TIOCGWINSZ)
> but IMHO it's really a termios problem.
> Till.

IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler           Herbststrasse 8
D-82178 Puchheim          Germany
email:    Thomas.Doerfler at imd-systems.de
PGP public key available at: http://www.imd-

More information about the users mailing list