diff options
| author | chrislu <chris.lu@gmail.com> | 2025-05-22 11:32:08 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-05-22 11:32:08 -0700 |
| commit | f3d44b1eb65328ac6aa66bd4b5687127175cbecc (patch) | |
| tree | 80b89d94e42c4bc593a6ed8ec446c3d9c716eb5f | |
| parent | 896096c41ba40df1e97d59a1281ea99e27a7c2e3 (diff) | |
| download | seaweedfs-f3d44b1eb65328ac6aa66bd4b5687127175cbecc.tar.xz seaweedfs-f3d44b1eb65328ac6aa66bd4b5687127175cbecc.zip | |
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.
| -rw-r--r-- | weed/command/fuse.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
