Parent/child relationship

Hi All,

Can someone confirm that if the parent process is slain for some reason
will it slay the child process or will the child process continue to
run.


John

John Parsons <parsonsj@esi.com> wrote:

Hi All,

Can someone confirm that if the parent process is slain for some reason
will it slay the child process or will the child process continue to
run.

It depends.

If the parent is a session leader, and the child is in the same process
group as the parent, when the parent is killed/exits, then the child(ren)
will get a SIGHUP.

Otherwise, no effect is seen on the children.

-David