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 1b67254
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 @@ -196,6 +196,9 @@ func main() {
kill(os.Getpid(), syscall.SIGUSR1)
wg.Wait()
defer ctx.Release()

// Signal parent process since we are taking over
_ = kill(os.Getppid(), syscall.SIGUSR1)
}

} else {
Expand Down

0 comments on commit 1b67254

Please sign in to comment.