Sfoglia il codice sorgente

Merge pull request #9990 from afishbeck/spawnWinBuildBreak

HPCC-17623 Fix _spawnvp windows build break

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 anni fa
parent
commit
0046b0965f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;