fuse/impl_b: tweaks from testing on hardy
authorrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 24 Sep 2008 18:07:38 +0000 (11:07 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Wed, 24 Sep 2008 18:07:38 +0000 (11:07 -0700)
commit97229238b0b9cac48139239f2fc70fbbe3d9a34b
tree95d3284a9ac28454106d15d12711b1c510ae518f
parent5882ce99f4fba678b0b52533c30b6cc63bb67909
fuse/impl_b: tweaks from testing on hardy

from testing on linux (specifically ubuntu hardy) the libfuse dll has a
different name, specifically libfuse.so.2. this patch tries libfuse.so
and then falls back to trying .2 if the former fails.

it also changes the unmount behaviour, to simply return from the handler's
loop_forever() loop upon being unmounted, rather than raising an EOFError,
since none of the client code I looked at actually handled that exception,
but did seem to expect to fall off of main() when loop_forever() returned.
Additionally, from my testing unmount typically led to an OSError from the
fuse fd read, rather than an empty read, as the code seemed to expect.

also removed a spurious import pyflakes quibbled about.
contrib/fuse/impl_b/pyfuse/handler.py