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:
Sergey Simonchik
2017-10-03 11:49:57 +03:00
parent 756c096ed5
commit b624ba9463
2 changed files with 1 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -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);