Searched refs:use_fd (Results 1 – 1 of 1) sorted by relevance
262 int use_fd; in uv__process_child_init() local294 use_fd = pipes[fd][1]; in uv__process_child_init()295 if (use_fd < 0 || use_fd >= fd) in uv__process_child_init()298 pipes[fd][1] = fcntl(use_fd, F_DUPFD_CLOEXEC, stdio_count); in uv__process_child_init()300 pipes[fd][1] = fcntl(use_fd, F_DUPFD, stdio_count); in uv__process_child_init()313 use_fd = pipes[fd][1]; in uv__process_child_init()315 if (use_fd < 0) { in uv__process_child_init()322 use_fd = open("/dev/null", fd == 0 ? O_RDONLY : O_RDWR); in uv__process_child_init()323 close_fd = use_fd; in uv__process_child_init()325 if (use_fd < 0) in uv__process_child_init()[all …]