Author: mjansen Date: Thu Nov 17 20:47:23 2016 New Revision: 73246
URL: http://svn.reactos.org/svn/reactos?rev=73246&view=rev Log: [CMD] Wait for the spawned application to exit while executing a batch script. Patch by Joachim Henze. CORE-12402
Modified: trunk/reactos/base/shell/cmd/cmd.c
Modified: trunk/reactos/base/shell/cmd/cmd.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=73... ============================================================================== --- trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] (original) +++ trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] Thu Nov 17 20:47:23 2016 @@ -442,8 +442,9 @@
if (prci.hProcess != NULL) { - if (IsConsoleProcess(prci.hProcess)) - { + if (bc != NULL || IsConsoleProcess(prci.hProcess)) + { + /* when processing a batch file or starting console processes: execute synchronously */ EnterCriticalSection(&ChildProcessRunningLock); dwChildProcessId = prci.dwProcessId;