Skip to content

Commit ea530a6

Browse files
Joel EinbinderJoel Einbinder
authored andcommitted
plumb stderr from the web process
1 parent e34db9e commit ea530a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/WebKit/UIProcess/Launcher/win/ProcessLauncherWin.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,11 @@ void ProcessLauncher::launchProcess()
9292

9393
STARTUPINFO startupInfo { };
9494
startupInfo.cb = sizeof(startupInfo);
95-
startupInfo.dwFlags = STARTF_USESHOWWINDOW;
95+
startupInfo.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
9696
startupInfo.wShowWindow = SW_HIDE;
97+
startupInfo.hStdInput = ::GetStdHandle(STD_INPUT_HANDLE);
98+
startupInfo.hStdOutput = ::GetStdHandle(STD_OUTPUT_HANDLE);
99+
startupInfo.hStdError = ::GetStdHandle(STD_ERROR_HANDLE);
97100
PROCESS_INFORMATION processInformation { };
98101
BOOL result = ::CreateProcess(0, commandLine.data(), 0, 0, true, 0, 0, 0, &startupInfo, &processInformation);
99102

0 commit comments

Comments
 (0)