On Tue, 13 Aug 2002, Sudarshan Raghavan wrote:
>
> Case 2) Parent dies and child still alive
> From the parent you can send a signal to the child
> and handle it in the child. Something like
> Parent process
> kill ('USR1', $child_pid);
> Child process
> $SIG{USR1} = sub { die "Parent process is
On Tue, 13 Aug 2002, Angerstein wrote:
> I have a child and a parent process.
> Both should die if the other has ended.
>
perldoc perlipc
Case 1) Child dies and parent still alive
In this case the signal SIGCHLD is sent to the parent.
You can set up a handler to SIGCHLD like this in your paren
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();
wh