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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user