def nextOpenDescriptor():
    descriptor = os.open("/dev/null", os.O_RDONLY)
    os.close(descriptor)
    return descriptor
Gets the number of the next available file descriptor.
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/worker.py/nextOpenDescriptor