Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Threaded Linux::Inotify2

by pbrthemaster (Initiate)
on Sep 13, 2013 at 10:15 UTC ( #1053880=perlquestion: print w/replies, xml ) Need Help??
pbrthemaster has asked for the wisdom of the Perl Monks concerning the following question:

I currently have a stand-alone script which I want to make it multi-threaded.

As of now, I tried two modules IPC::Shareable and forks::shared to share the objects but I didn't get any luck so far.

What happens with those modules is,

* IPC::Shareable : Once the object is created, IPC::Shareable causes something to call Linux::Inotify2->DESTROY which closes the file handle.

* forks::shared : Some capabilities in the object are lost. For ex, the fd returns *empty*

Can anyone pls tell how to share Linux::Inotify2 and Linux::Inotify2::Watch objects without losing capabilities?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1053880]
Approved by Corion
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2018-03-25 00:07 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.