I am launching a child process with ProcessBuilder, and need the child process to exit if the parent process does. Under normal circumstances, my code is stopping the child
For a single child processes you can manage this by inverting the child/parent relationship. See my answer to a later incarnation of this question.