diff --git a/main.go b/main.go index 112b8595..0c1f52fa 100644 --- a/main.go +++ b/main.go @@ -188,12 +188,14 @@ func main() { wg.Wait() if waitedForSignal == syscall.SIGUSR1 { return - } else { - return fuse.EINVAL } + 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) + _ = kill(os.Getpid(), syscall.SIGUSR1) wg.Wait() defer ctx.Release() }