Hi,
if i've got a script like:

for($i=1;$i<=5;$i++){
    my $pid=fork;
    die "$!\n" unless defined($pid);
    unless($pid){
    sleep;
    }
}
sleep;

The father forks 5 childs that sleeping, and after also the father sleeps.
The question is:

if i send a 'TERM' at the father, i want that the fathet kill the childs 
and aftet it dies... but how do the father to obtain the "pid" of the 
childs ???'????


    Thanks

    Walter


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to