diff --git a/src/common/util.c b/src/common/util.c index 7379da674d..f8d1b7be4b 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -4074,7 +4074,7 @@ tor_spawn_background(const char *const filename, const char **argv, format_win32_error(GetLastError())); return status; } - if (!SetHandleInformation(stderr_pipe_write, HANDLE_FLAG_INHERIT, 0)) { + if (!SetHandleInformation(stdin_pipe_write, HANDLE_FLAG_INHERIT, 0)) { log_warn(LD_GENERAL, "Failed to configure pipe for stdin communication with child " "process: %s", format_win32_error(GetLastError()));