Hi
      I'm trying to plant an alarm timeout in thread but it's still not 
work,
I tend to think the problem is that  there is global signal ALRM and local 
signal ALRM in threads
which aren't the same signal, but that's just a guess, Can someone tell me 
what's going on here?

=================================================================================

use Thread;

sub jess{

        eval{
                $SIG{ALRM}=sub{die "kuay\n"};
                alarm(3);
                sleep(100);
                alarm(0);
        };
}

$thr=Thread->new(\&jess);

print "ok" if $@ eq "kuay\n";

================================================================================

in need of suggestion.

Alien.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Reply via email to