From f3d44b1eb65328ac6aa66bd4b5687127175cbecc Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 22 May 2025 11:32:08 -0700 Subject: [PATCH] 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. --- weed/command/fuse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/fuse.go b/weed/command/fuse.go index 9832b4f72..a5461a7f8 100644 --- a/weed/command/fuse.go +++ b/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()