7043425: (fc) ClosedByInterruptException thrown but interrupt status not set

Alan Bateman Alan.Bateman at oracle.com
Wed May 11 06:51:07 PDT 2011


Chris Hegarty wrote:
> What you have done here looks fine to me, but I wonder if we should 
> break out of the loop in signaAndWait if interrupted?
>
> -Chris.
>
Thanks for looking at it. We can't break out of the loop. This is part 
of the asynchronous close. N threads are doing I/O on the file. We use 
our dup2 trick to close the file and signal the threads so that complete 
the I/O operations quickly. This loop is just waiting until all the I/O 
operations have been completed so that the close can continue and 
release the file descriptor.

-Alan


More information about the nio-dev mailing list