#ifndef _WIN32
+#include "lib/fdio/fdio.h"
+
/** Internal state for Unix handles. */
struct process_unix_handle_t {
/** Unix File Descriptor. */
unix_process = process_get_unix_process(process);
/* Create standard in pipe. */
- retval = pipe(stdin_pipe);
+ retval = tor_pipe_cloexec(stdin_pipe);
if (-1 == retval) {
log_warn(LD_PROCESS,
}
/* Create standard out pipe. */
- retval = pipe(stdout_pipe);
+ retval = tor_pipe_cloexec(stdout_pipe);
if (-1 == retval) {
log_warn(LD_PROCESS,
}
/* Create standard error pipe. */
- retval = pipe(stderr_pipe);
+ retval = tor_pipe_cloexec(stderr_pipe);
if (-1 == retval) {
log_warn(LD_PROCESS,