Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-01-16 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (192 votes). Check out past polls.

    Notices?