7043425: (fc) ClosedByInterruptException thrown but interrupt status not set
chris.hegarty at oracle.com
Wed May 11 06:48:51 PDT 2011
OK, thanks for the explanation. I'm ok with it as is.
On 05/11/11 02:51 PM, Alan Bateman wrote:
> 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?
> 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.
More information about the nio-dev