Lines Matching refs:errfd
1510 safe_fork(int infd, int outfd, int errfd) in safe_fork() argument
1551 if (errfd == 0 || errfd == 1) in safe_fork()
1552 errfd = dup(errfd); in safe_fork()
1559 if (errfd != 2) in safe_fork()
1560 dup2(errfd, 2); in safe_fork()
1577 if (errfd != 2) in safe_fork()
1578 close(errfd); in safe_fork()
1601 int errfd; local
1604 errfd = log_to_fd;
1606 errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0600);
1609 pid = safe_fork(in, out, errfd);
1612 close(errfd);