Searched refs:fd_console (Results 1 – 1 of 1) sorted by relevance
231 int fd_console; in fork_sulogin() local272 if ((fd_console = open("/dev/console", O_RDWR)) >= 0) { in fork_sulogin()273 if (fd_console != STDIN_FILENO) in fork_sulogin()274 while (dup2(fd_console, STDIN_FILENO) < 0 && in fork_sulogin()277 if (fd_console != STDOUT_FILENO) in fork_sulogin()278 while (dup2(fd_console, STDOUT_FILENO) < 0 && in fork_sulogin()281 if (fd_console != STDERR_FILENO) in fork_sulogin()282 while (dup2(fd_console, STDERR_FILENO) < 0 && in fork_sulogin()285 if (fd_console > STDERR_FILENO) in fork_sulogin()286 (void) close(fd_console); in fork_sulogin()