Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Linux::Inotify2 - unable to receive events

by jfroebe (Parson)
on Oct 04, 2008 at 01:18 UTC ( #715303=note: print w/ replies, xml ) Need Help??


in reply to Re: Linux::Inotify2 - unable to receive events
in thread Linux::Inotify2 - unable to receive events

I think you're referring to the following snippet:

# for Event: Event->io (fd =>$inotify->fileno, poll => 'r', cb => sub { $inotify-> +poll }); # for Glib: add_watch Glib::IO $inotify->fileno, in => sub { $inotify->poll }; # manually: 1 while $inotify->poll;

These are three separate ways of creating a loop for $inotify->poll. Yup, I tried all three ways. I'm using the third method to isolate the issue.

Thanks though

Jason L. Froebe

Blog, Tech Blog


Comment on Re^2: Linux::Inotify2 - unable to receive events
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2015-07-05 08:38 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 (61 votes), past polls