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

Rémi Forax forax at univ-mlv.fr
Wed May 11 07:07:07 PDT 2011


Looks fine for me too.

Rémi

On 05/11/2011 03:48 PM, Chris Hegarty wrote:
> OK, thanks for the explanation. I'm ok with it as is.
>
> -Chris.
>
> 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?
>>>
>>> -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