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

View File

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