浏览代码

Merge pull request #9990 from afishbeck/spawnWinBuildBreak

HPCC-17623 Fix _spawnvp windows build break

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 年之前
父节点
当前提交
0046b0965f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;