From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: kern1@rich-paul.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: EOF and ptys
Date: Tue, 02 Aug 2005 20:04:44 +0100 [thread overview]
Message-ID: <1123009484.9438.35.camel@localhost.localdomain> (raw)
In-Reply-To: <20050801235731.GA25477@rich-paul.net>
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
prev parent reply other threads:[~2005-08-02 18:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-01 23:57 kern1
2005-08-02 19:04 ` Alan Cox [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1123009484.9438.35.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=kern1@rich-paul.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®