ENH: provide a vfork/exec version of system (issue #185)

The normal library system() command uses 'fork', which causes
problems on IB+OPENMPI.

STYLE: add Foam:: qualifier to system calls to make them easier to spot.
This commit is contained in:
Mark Olesen
2016-07-18 13:37:39 +02:00
parent 42b2086683
commit 8bb78dda60
9 changed files with 197 additions and 23 deletions

View File

@ -1309,7 +1309,7 @@ int main(int argc, char *argv[])
+ "_"
+ procFile.name()
);
if (system(cmd.c_str()) == -1)
if (Foam::system(cmd.c_str()) == -1)
{
WarningInFunction
<< "Could not execute command " << cmd << endl;