Chromium Code Reviews| Index: base/process_util_win.cc |
| diff --git a/base/process_util_win.cc b/base/process_util_win.cc |
| index e88ae98e6bfeca7feddb095764956c894447ced9..23cddb160a48ca08f3331e0f05e4188a718f44b5 100644 |
| --- a/base/process_util_win.cc |
| +++ b/base/process_util_win.cc |
| @@ -306,6 +306,15 @@ bool LaunchProcess(const string16& cmdline, |
| startup_info.dwFlags = STARTF_USESHOWWINDOW; |
| startup_info.wShowWindow = options.start_hidden ? SW_HIDE : SW_SHOW; |
| + if (options.stdin_handle != kNullProcessHandle) { |
| + startup_info.dwFlags |= STARTF_USESTDHANDLES; |
|
rvargas (doing something else)
2012/11/29 01:19:23
Unused handles should be set to INVALID_HANDLE_VAL
Sergey Ulanov
2012/12/01 01:23:00
Done in crrev.com/11419267
|
| + startup_info.hStdInput = options.stdin_handle; |
| + } |
| + if (options.stdout_handle != kNullProcessHandle) { |
| + startup_info.dwFlags |= STARTF_USESTDHANDLES; |
| + startup_info.hStdOutput = options.stdout_handle; |
| + } |
| + |
| DWORD flags = 0; |
| if (options.job_handle) { |