Searched refs:fd_console (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/svc/startd/
H A Dfork.c231 int fd_console; local
272 if ((fd_console = open("/dev/console", O_RDWR)) >= 0) {
273 if (fd_console != STDIN_FILENO)
274 while (dup2(fd_console, STDIN_FILENO) < 0 &&
277 if (fd_console != STDOUT_FILENO)
278 while (dup2(fd_console, STDOUT_FILENO) < 0 &&
281 if (fd_console != STDERR_FILENO)
282 while (dup2(fd_console, STDERR_FILENO) < 0 &&
285 if (fd_console > STDERR_FILENO)
286 (void) close(fd_console);
[all...]

Completed in 44 milliseconds