else:
_fd_dir = None
if _fd_dir is not None:
if _fd_dir is not None and platform.system() not in ('FreeBSD',):
def get_open_fds():
return (int(fd) for fd in os.listdir(_fd_dir) if fd.isdigit())