So, every time I start to immerse Sun's <strike> Oracle Java code, I am disappointed. nd how is the variable name? Doesn't become more opaque than that.
That nd refers to NativeDispatcher , which handles specific platform operations, such as closing file descriptors (kindly called the fd variable). I can only assume that the NativeThread check and the signal clear the read / write streams, the source does not provide much information. isRegistered()
from AbstractSelectableChannel ensures that the channel is not used, and the kill
method is what closes everything and finally calls nd.close (FD);
source share