Re: Inconsistency between PTY read() return values
From: Ed Schouten
Date: Wed Apr 08 2009 - 14:23:15 EST
* Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> A modem disconnect is a hang up which is quite different to an EOF and is
> effectively a security barrier as well (existing users of the tty port
> lose access to it aka revoke())
Ah, I see. I thought of a hangup as being a physical loss of carrier,
not the method of revoking processes from a TTY. So how come a hangup
can be seen by the pseudo-terminal master? Isn't that something that
should only cause file descriptors to the TTY to become invalid?
--
Ed Schouten <ed@xxxxxxxxxxx>
Attachment:
pgp00000.pgp
Description: PGP signature