This lets one to use /dev/stdout for logging. Mainly
useful for testing purposes where we can generate
log output to stdout and use tee to write it to a
file for later examination.
t_askpass("Give the password for SSL keys: ");
}
- if (dup2(null_fd, STDIN_FILENO) < 0 ||
- dup2(null_fd, STDOUT_FILENO) < 0)
+ if (dup2(null_fd, STDIN_FILENO) < 0)
+ i_fatal("dup2(null_fd) failed: %m");
+ if (!foreground && dup2(null_fd, STDOUT_FILENO) < 0)
i_fatal("dup2(null_fd) failed: %m");
pidfile_path =