HADOOP-12495. Fix posix_spawn error on OS X (aw)

This commit is contained in:
Allen Wittenauer 2015-10-21 08:00:26 -07:00
parent 14f0e2787c
commit b37c41fd6e
1 changed files with 3 additions and 0 deletions

View File

@ -817,6 +817,9 @@ public abstract class Shell {
return;
}
exitCode = 0; // reset for next run
if (Shell.MAC) {
System.setProperty("jdk.lang.Process.launchMechanism", "POSIX_SPAWN");
}
runCommand();
}