Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Blocking call with time limit ( Linux::Inotify2 )

by Eyck (Priest)
on Sep 08, 2010 at 08:42 UTC ( [id://859287]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            $inotify->watch ($watchdir, IN_ALL_EVENTS) or die "watch creat
    +ion failed" ;
            $0="cping: watch ready, waiting for activity (".scalar(localti
    +me()).")...";
            my @events = $inotify->read;
    
  2. or download this
     $inotify->blocking(0);
     ...
    ...
     if ($idle>$timelimit) {
       code();
     };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-19 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found