]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix the windows test failure caused by the #15435 changes.
authorYawning Angel <yawning@schwanenlied.me>
Thu, 2 Apr 2015 03:25:51 +0000 (03:25 +0000)
committerYawning Angel <yawning@schwanenlied.me>
Thu, 2 Apr 2015 03:25:51 +0000 (03:25 +0000)
src/common/util.c

index 7379da674d086f12b2ebc3f004aa13c1eae3bbf4..f8d1b7be4b1e0d1a07cb50f306604e1097b7cf82 100644 (file)
@@ -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()));