I have a child and a parent process.
Both should die if the other has ended.
i tried with
kill(0,$pib);
while (kill(0,$pib)){
....
....
}
in the parentprocess and with
$parentpid = getppid();
while (kill(0,$parentpid)){
....
....
....
}
in the child.
I also tried:
$parentpid = getppid();
while ($parentpid != 1){
....
....
$parentpid = getppid();
....
....
}
in the child process.
I get childpid from fork (if $pid = fork)
Will this work?
Or das anyone has a better idea?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]