note
kiruthika.bkite
Is this you are expecting,<br>
<code>
my $pid;
sub handler
{
if($pid==0)
{
print "sig",shift,"received\n";
}
else
{
$SIG{'INT'}='DEFAULT';
}
}
$SIG{'INT'}=\&handler;
$pid=fork();
if($pid==0)
{
print "child\n";
sleep(10);
}
else
{
wait();
print "parent\n";
sleep(30);
}
</code>
833279
833279