detach.py
def _get_max_fd(self):
        """Return the maximum file descriptor value."""
        limits = resource.getrlimit(resource.RLIMIT_NOFILE)
        result = limits[1]
        if result == resource.RLIM_INFINITY:
            result = maxfd
        return result
def _get_max_fd(self):
        limits = resource.getrlimit(resource.RLIMIT_NOFILE)
        result = limits[1]
        if result == resource.RLIM_INFINITY:
            result = maxfd
        return result
def _get_max_fd ( self ) : limits = resource . getrlimit ( resource . RLIMIT_NOFILE ) result = limits [ 1 ] if result == resource . RLIM_INFINITY : result = maxfd return result
Return the maximum file descriptor value.
Return the maximum file descriptor value .