Make fuse command linux/MacOS only (#6811)

This commit is contained in:
Weihao Jiang
2025-05-23 23:21:46 +08:00
committed by GitHub
parent 2e1506c31e
commit ea70d17c5f
4 changed files with 280 additions and 261 deletions

View File

@@ -271,7 +271,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
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)
err = syscall.Kill(mountOptions.fuseCommandPid, syscall.SIGTERM)
if err != nil {
fmt.Printf("failed to notify parent process: %v\n", err)
return false