[lkml]   [2000]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] thread wakeup fix for 2.4.0-test7
Linus wrote:
> My claim is that a user program that does a close() on a file that is in
> use is inherently racy. Is that so hard to understand?

Unfortunately, Java programs do this a lot, as it's the
only reliable way to break a thread out of a blocking I/O call

> Just don't close a file descriptor while it is in use. It's that simple.
> (I'm also claiming that Linux will give the most reasonable possible
> semantics for the case where you _do_ close the file desciptor when it
> is in use. I still claim that you shouldn't do it.)

I'll forward your note to the folks in JSR-51 (Sun's "new I/O for Java"
group), fwiw.
- Dan
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.400 / U:0.948 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site