From: Gabriel Horner Date: 2005-10-02T21:21:45+09:00 Subject: Re: IO.select hangs with fusefs Thanks. I should've thought of this in hindsight. Gabriel On Wed, Sep 28, 2005 at 06:35:33AM +0900, Greg Millam wrote: > > I read about fusefs on why's page and found a commandline > > interface to ActiveRecord very cool. I downloaded the latest > > fuse (2.3) and latest fusefs(0.3) but when I run any of the sample > > scripts it just hangs. Any of the sample scripts hang at the IO.select > > call. I looked for documentation on this method on ruby-doc.org but its > > not too clear to me how to use it correctly and thus troubleshoot it. > > Any ideas on what's wrong or pointers to IO.select tutorials? > > BTW, I'm running ruby 1.8.2. > > Thanks for this - I'll include some sentences mentioning how this works > (and possibly a method call to daemonize the process) in the next > release of FuseFS. > > The IO.select loop is intended to hang the script indefinitely. The > kernel communicates with the script through a socket opened on > /dev/fuse, and that socket is what IO.select is waiting for input on. > > The proper method way to do this is either: > > 1) start the script, then play around with the FS in another terminal > > or 2) start the script in the background, then play with it. > ruby sample/yamlfs.rb mountpoint someyamlfile.yaml & > > Hope that helps. > > - Greg -- Check out at my website at http://www.chwhat.com IF mail to chwhat.com bounces, send it instead to gabriel.horner@gmail.com Peace.