public synchronized void close()

in nailgun-server/src/main/java/com/facebook/nailgun/ReferenceCountedFileDescriptor.java [56:67]


  public synchronized void close() throws IOException {
    if (fd == -1 || closePending) {
      return;
    }

    if (fdRefCount == 0) {
      doClose();
    } else {
      // Another thread has the FD. We'll close it when they release the reference.
      closePending = true;
    }
  }