mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alistair John Strachan <s0348365@sms.ed.ac.uk>
To: Michael Lindner <mikell@optonline.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: close(fd) doesn't wake up read(fd) or select() in another thread
Date: Fri, 14 Jul 2006 20:51:43 +0100	[thread overview]
Message-ID: <200607142051.43428.s0348365@sms.ed.ac.uk> (raw)
In-Reply-To: <200607141507.23501.mikell@optonline.net>

On Friday 14 July 2006 20:07, Michael Lindner wrote:
> Update: On advice from Nish Aravamudan I upgraded my kernel to 2.6.17.4 and
> verified that the problem still exists in that version.

This behaviour is POSIX compliant and should be expected. There is no bug.

If you want to work around it, use shutdown() as you suggested, and poll() 
instead of select() and wait for POLLNVAL or POLLHUP.

See the following Java "bug" which explains the situation a little better:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4344135

-- 
Cheers,
Alistair.

Final year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.

  reply	other threads:[~2006-07-14 19:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-14 15:46 Michael Lindner
2006-07-14 19:07 ` Michael Lindner
2006-07-14 19:51   ` Alistair John Strachan [this message]
2006-07-16  6:44 ` David Schwartz

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=200607142051.43428.s0348365@sms.ed.ac.uk \
    --to=s0348365@sms.ed.ac.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikell@optonline.net \
    /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®