[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200607142051.43428.s0348365@sms.ed.ac.uk>
Date: Fri, 14 Jul 2006 20:51:43 +0100
From: Alistair John Strachan <s0348365@....ed.ac.uk>
To: Michael Lindner <mikell@...online.net>
Cc: linux-kernel@...r.kernel.org
Subject: Re: PROBLEM: close(fd) doesn't wake up read(fd) or select() in another thread
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists