Explorar o código

Merge pull request #9990 from afishbeck/spawnWinBuildBreak

HPCC-17623 Fix _spawnvp windows build break

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=8) %!d(string=hai) anos
pai
achega
0046b0965f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ecl/eclcmd/eclcmd_shell.cpp

+ 1 - 1
ecl/eclcmd/eclcmd_shell.cpp

@@ -60,7 +60,7 @@ int EclCMDShell::callExternal(ArgvIterator &iter)
     if (_spawnvp(_P_WAIT, local.str(), const_cast<char **>(argv))==-1)
         return 0;
     // If not found, try the path
-    if (errno!=ENOENT || _spawnvp(cmdstr.str(), const_cast<char **>(argv))==-1)
+    if (errno!=ENOENT || _spawnvp(_P_WAIT, cmdstr.str(), const_cast<char **>(argv))==-1)
 #else
     if (execvp(local.str(), const_cast<char **>(argv))!=-1)
         return 0;