On Thu, Dec 10, 2009 at 06:11:35PM -0700, Bryan Murdock wrote: > I have a more general UNIX-y question about processes and subprocesses > (to use the python terms). Why is it that some subprocesses die when > I kill the parent process (SIGTERM or SIGKILL), and some don't? Do > some programs periodically check if their parent process is still > alive?
If a process isn't a process group leader, then its children definitely won't get killed. I can't remember exactly what determines whether killing a group leader kills the whole process group--I think I remember seeing something about it having to be both a session leader and a process group leader or something. Anyway, there are lots of web pages that talk about these issues in a lot of detail, but it always takes some patience and experimentation for me to make sure I'm interpreting the specifications correctly. -- Andrew McNabb http://www.mcnabbs.org/andrew/ PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868 -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
