From 38862e865086b924f0d467e81d60ad017718f9b2 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 24 Mar 2015 11:53:32 +1100 Subject: [PATCH] Set GOMAXPROCS=2 in mount_sample to help flush out issues like #4. --- samples/mount_sample/mount.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/mount_sample/mount.go b/samples/mount_sample/mount.go index e7d0def..5559b7e 100644 --- a/samples/mount_sample/mount.go +++ b/samples/mount_sample/mount.go @@ -22,6 +22,7 @@ import ( "fmt" "log" "os" + "runtime" "github.com/jacobsa/bazilfuse" "github.com/jacobsa/fuse" @@ -112,6 +113,10 @@ func getReadyFile() (f *os.File, err error) { func main() { flag.Parse() + // Allow parallelism in the file system implementation, to help flush out + // bugs like https://github.com/jacobsa/fuse/issues/4. + runtime.GOMAXPROCS(2) + // Grab the file to signal when ready. readyFile, err := getReadyFile() if err != nil {