Don't ask to ask, just ask | |
PerlMonks |
Re: Blocking call with time limit ( Linux::Inotify2 )by Corion (Patriarch) |
on Sep 08, 2010 at 08:56 UTC ( [id://859288]=note: print w/replies, xml ) | Need Help?? |
I'm not sure whether the API for Linux::Inotify2 allows for a timeout. Before entering into the melee of signals or threads, I would look at the AnyEvent integration of Linux::Inotify2, maybe AnyEvent::Filesys::Notify. Using something like AnyEvent will turn parts of your program inside out, as you will get callbacks instead of actively check on things yourself.
In Section
Seekers of Perl Wisdom
|
|