mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kern1@rich-paul.net
To: linux-kernel@vger.kernel.org
Subject: EOF and ptys
Date: Mon, 1 Aug 2005 19:57:31 -0400	[thread overview]
Message-ID: <20050801235731.GA25477@rich-paul.net> (raw)

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

-- 
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

             reply	other threads:[~2005-08-01 23:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01 23:57 kern1 [this message]
2005-08-02 19:04 ` Alan Cox

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=20050801235731.GA25477@rich-paul.net \
    --to=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®