Skip to content

Instantly share code, notes, and snippets.

@pipcet
Created June 7, 2014 04:27
Show Gist options
  • Save pipcet/a88782bdc8a24b2c6f08 to your computer and use it in GitHub Desktop.
Save pipcet/a88782bdc8a24b2c6f08 to your computer and use it in GitHub Desktop.
use threads;
use threads::shared;
use Fuse;
mkdir("a");
mkdir("b");
async { Fuse::main(mountpoint=>"a", threaded=>1, getattr => sub { warn "a"; sleep(1); }) };
async { Fuse::main(mountpoint=>"b", threaded=>1, getattr => sub { warn "b"; sleep(1); }) };
sleep(10);
system("ls a/");
system("ls b/");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment