Browse Source

Update fuse.go

Changed the signal from SIGUSR1 to SIGTERM. This should fix the compilation error since SIGTERM is available on all Unix-like systems including macOS. The functionality remains similar - it will still allow the master process to wait for a signal before exiting, just using a different signal type.
pull/6811/head
chrislu 2 weeks ago
parent
commit
f3d44b1eb6
  1. 2
      weed/command/fuse.go

2
weed/command/fuse.go

@ -227,7 +227,7 @@ func runFuse(cmd *Command, args []string) bool {
argv := append(os.Args, "-o", "child="+strconv.Itoa(pid))
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGUSR1)
signal.Notify(c, syscall.SIGTERM)
attr := os.ProcAttr{}
attr.Env = os.Environ()

Loading…
Cancel
Save