Skip to content

Commit

Permalink
Fix #230: Signal parent once child takes over
Browse files Browse the repository at this point in the history
  • Loading branch information
mechanicker committed Jun 26, 2023
1 parent 350ff31 commit abb64fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func main() {
return fuse.EINVAL
}
} else {
// Signal parent process since we are taking over
_ = kill(os.Getppid(), syscall.SIGUSR1)

// kill our own waiting goroutine
kill(os.Getpid(), syscall.SIGUSR1)
wg.Wait()
Expand Down

0 comments on commit abb64fa

Please sign in to comment.