Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

On timing out with ALRM

by tlm (Prior)
on Jul 25, 2007 at 15:39 UTC ( #628706=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
      local $SIG{ ALRM } = sub { die 'timeout' };
    ...
        handle_timeout();
      }
    }
    
  2. or download this
    $cowbell = eval { more_cowbell() };
    # eval errors blithely ignored
    ...
    
    # in some other code, far, far away
    die 'i got a fever' unless $cowbell;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://628706]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (17)
As of 2015-07-28 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls