aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 631091e80..c419d5697 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -13,6 +13,7 @@ import (
"runtime"
"strconv"
"strings"
+ "syscall"
"time"
"github.com/hanwen/go-fuse/v2/fuse"
@@ -268,6 +269,15 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
unmount.Unmount(dir)
})
+ if mountOptions.fuseCommandPid != 0 {
+ // send a signal to the parent process to notify that the mount is ready
+ err = syscall.Kill(mountOptions.fuseCommandPid, syscall.SIGUSR1)
+ if err != nil {
+ fmt.Printf("failed to notify parent process: %v\n", err)
+ return false
+ }
+ }
+
grpcS := pb.NewGrpcServer()
mount_pb.RegisterSeaweedMountServer(grpcS, seaweedFileSystem)
reflection.Register(grpcS)