Searched refs:local_max_fd (Results 1 – 1 of 1) sorted by relevance
217 long local_max_fd; in safe_get_max_fd() local219 local_max_fd = fcntl(0, F_MAXFD); in safe_get_max_fd()220 if (local_max_fd >= 0) in safe_get_max_fd()221 return local_max_fd; in safe_get_max_fd()231 local_max_fd = sysconf(_SC_OPEN_MAX); in safe_get_max_fd()232 if (local_max_fd == -1) in safe_get_max_fd()234 local_max_fd = 256; /* Matches legacy Lib/subprocess.py behavior. */ in safe_get_max_fd()235 return local_max_fd; in safe_get_max_fd()