Prechádzať zdrojové kódy

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

Yawning Angel 10 rokov pred
rodič
commit
38c8e0bfc5
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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()));
       format_win32_error(GetLastError()));
     return status;
     return status;
   }
   }
-  if (!SetHandleInformation(stderr_pipe_write, HANDLE_FLAG_INHERIT, 0)) {
+  if (!SetHandleInformation(stdin_pipe_write, HANDLE_FLAG_INHERIT, 0)) {
     log_warn(LD_GENERAL,
     log_warn(LD_GENERAL,
       "Failed to configure pipe for stdin communication with child "
       "Failed to configure pipe for stdin communication with child "
       "process: %s", format_win32_error(GetLastError()));
       "process: %s", format_win32_error(GetLastError()));