in reply to Killing a process and, recursively, all its children

Another idea is to have each child keep track of its children. In the END block of each child, have it kill its children. Theoretically, if the parent is killed, it will kill all of its children, who will kill all of their children, etc.

Replies are listed 'Best First'.
Re: Re: Killing a process and, recursively, all its children
by bronto (Priest) on Aug 12, 2003 at 13:22 UTC

    Unfortunately, the child process could be everything: a perl script, a shell script, a binary executable, a rocket... :-), so your approach is not suitable.

    Anyway, thanks for your suggestion.

    Ciao!
    --bronto


    The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
    --John M. Dlugosz