in reply to Re: Getting Linux::Inotify2 and POE to work with select_read()
in thread Getting Linux::Inotify2 and POE to work with select_read()
bingo!
### Add a select to the session, and possibly begin a watcher. sub _data_handle_add { my ($self, $handle, $mode, $session, $event, $args) = @_; my $fd = fileno($handle);
I receive the file descriptor from Linux::Inotify2 but I need a file handle to send to select_read(). Does anyone know how to convert a file descriptor to a file handle? This is definitely a Monday
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Getting Linux::Inotify2 and POE to work with select_read() (fdopen)
by tye (Sage) on Oct 07, 2008 at 01:41 UTC | |
by jfroebe (Parson) on Oct 07, 2008 at 13:07 UTC |
In Section
Seekers of Perl Wisdom