Browse Source

Fix the windows test failure caused by the #15435 changes.

Yawning Angel 9 years ago
parent
commit
38c8e0bfc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
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()));