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.
This commit is contained in:
chrislu
2025-05-22 11:32:08 -07:00
parent 896096c41b
commit f3d44b1eb6

View File

@@ -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()