aboutsummaryrefslogtreecommitdiff
path: root/pkg/driver/mounter.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/driver/mounter.go')
-rw-r--r--pkg/driver/mounter.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/driver/mounter.go b/pkg/driver/mounter.go
index 2c019ed..22b162c 100644
--- a/pkg/driver/mounter.go
+++ b/pkg/driver/mounter.go
@@ -44,6 +44,13 @@ func fuseMount(path string, command string, args []string) error {
return fmt.Errorf("Error fuseMount command: %s\nargs: %s\nerror: %v", command, args, err)
}
+ // avoid zombie processes
+ go func() {
+ if err := cmd.Wait(); err != nil {
+ glog.Errorf("weed mount process %d exit: %v", cmd.Process.Pid, err)
+ }
+ }()
+
return waitForMount(path, 10*time.Second)
}