lkml.org 
[lkml]   [2005]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: EOF and ptys
From
Date
On Llu, 2005-08-01 at 19:57 -0400, kern1@rich-paul.net 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-02 20:48    [W:0.028 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site