Messages in this thread | | | From | Alistair John Strachan <> | 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 |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |