EOF and ptys
I notice that when one closes a pty, rather than the master side'd read returning 0, it's an EIO. Seems to be this code, from n_tty.c.
if (test_bit(TTY_OTHER_CLOSED, &tty->flags)) {
retval = -EIO;
break;
}I'm not an expert, it might be correct, but I thought I should point it out.
Regards,
Rich Paul
Signature · 4 lines
Never let 'em tell you the drug war is a total failure. It's preventing sick people from getting enough pain medication, isn't it? http://radical-centrist.blogspot.com
Quoted 8 lines · On Llu, 2005-08-01 at 19:57 -0400, [email protected] wrote:
I notice that when one closes a pty, rather than the master side'd read returning 0, it's an EIO. Seems to be this code, from
n_tty.c.if (test_bit(TTY_OTHER_CLOSED, &tty->flags)) { retval = -EIO; break; }I'm not an expert, it might be correct, but I thought I should point it out.
A pty close is a hangup rather than an end of file.
Alan