Skip to content

Commit abb64fa

Browse files
committed
Fix #230: Signal parent once child takes over
1 parent 350ff31 commit abb64fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ func main() {
192192
return fuse.EINVAL
193193
}
194194
} else {
195+
// Signal parent process since we are taking over
196+
_ = kill(os.Getppid(), syscall.SIGUSR1)
197+
195198
// kill our own waiting goroutine
196199
kill(os.Getpid(), syscall.SIGUSR1)
197200
wg.Wait()

0 commit comments

Comments
 (0)