From 1b672547eb6a9b5b5130eff2a1633ad5732385b0 Mon Sep 17 00:00:00 2001 From: Dhruva Krishnamurthy Date: Sun, 25 Jun 2023 08:02:57 -0700 Subject: [PATCH] Fix #230: Signal parent once child takes over --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 112b8595..29272497 100644 --- a/main.go +++ b/main.go @@ -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 {