mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
runnerw: exit with non-zero code if child process cannot be created
Use exit code=2 to emulate "CreateProcess error=2, The system cannot find the file specified" https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx
This commit is contained in:
Binary file not shown.
@@ -297,7 +297,7 @@ int main(int argc, char * argv[]) {
|
||||
ErrorMessage("CreateProcess");
|
||||
CloseHandle(newstdin);
|
||||
CloseHandle(write_stdin);
|
||||
exit(0);
|
||||
exit(2);
|
||||
}
|
||||
if (hasConsoleWindow || childParams.createNewConsole) {
|
||||
attachChildConsole(pi);
|
||||
|
||||
Reference in New Issue
Block a user