I'm sure that this is probably an FAQ (couldn't find anything
on my searches though).

All references establish that ithreads doesn't like signaling
too well, I've verified that as well :-)

Is there a substitute method of the ALRM based timeout?

In other words something similar to this:


        eval {
            $| = 1;
            local $SIG{ALRM} = sub { die 'timeout!' };
            alarm($timeoutsec);
            # DO SOMETHING HERE
            $status = do_something();
            alarm(0);
        };
        if(!$status) {
            # Timed out
            # HANDLE THE TIMEOUT PROPERLY
        }


Thanks,

Alberto

-- 
Alberto Alonso      General Manager      Global Gate Systems LLC.
(512) 260-2523                           http://www.ggsys.net
Collocation, monitoring, remote backups and consulting solutions

Reply via email to