In python 2.7 if program master uses subprocess.Popen to start subprocess and then exits, subprocess will continue to run. I think that this is consistent with process handling in general, at least for *nix.
This seems to imply that if some of my subprocess programs run forever and I kill master the subprocesses will continue to run. Is that correct? (I ask because of the possibility that killing a process behaves differently than simply having it exit of its own accord).
In StackOverflow entries about command shells (not Python) there is mention of being able to create a subprocess that actually will terminate if its creator process dies. They seem to be called "daemonic" processes.
Is there a similar way to make this happen automatically in Python? That is, is there a way I can use subprocess.Popen or another method to start a subprocess that will automatically die if the parent dies?
The child processes are very different so threading is not an option.