Adding working but somewhat preliminary poll() support.
authorDerrik Pates <demon@now.ai>
Wed, 10 Aug 2011 02:00:03 +0000 (20:00 -0600)
committerDerrik Pates <demon@now.ai>
Wed, 10 Aug 2011 02:00:03 +0000 (20:00 -0600)
commitc8201688f77a2f26c429e8d4ff2310f3c8353150
tree043115fe09910bb0f8cc5daaccf3ae14b3d166d6
parent83a53bb0cf47e91a5935a09d94545134c1a35b65
Adding working but somewhat preliminary poll() support.

This is my current-state support for poll() (my three-quarter-assed
implementation of it anyway). I attempted to implement the poll handle
as an object, but ran into threading problems with that, so it evolved
in a slightly different direction.

Also had to add a small hack in S_fh_store_handle(), as when it
tried to use mg->mg_ptr to make the filehandle, the fsel.pl example
file ended up with all the file descriptors lost but the one. I'm not
currently sure why that's so; I've never seen that happen before, but
it seems to be threading related, as if I disable the 'threaded' flag
to Fuse::main(), it works. I think it may be an undiagnosed threading
interaction...
Fuse.pm
Fuse.xs
examples/fsel.pl [new file with mode: 0755]
examples/fselclient.pl [new file with mode: 0755]