Normally if I create a process via something like:
Process proc = new ProcessBuilder("some_long_running_script.py").start();
and then my java program finishes, I can see that the script process continues to run (as expected)
if however I then add the code:
proc.waitFor();
and then kill my java program before the script finishes, I can see that the script dies as well (not as expected).
This would seem to say that "waitFor()" somehow merges the script process with my java process, is this by design ? I can't seem to see it discussed anywhere in the docs.
Could this be OS specific? I'm running on Mac Yosemite