From 0d91d263114f48926d90cffe91953f3a6018ebef Mon Sep 17 00:00:00 2001 From: Sudip Bhandari Date: Sun, 16 May 2021 20:30:26 +0545 Subject: [PATCH] Update README.md os.KILL, SIGKILL can't really be trapped and we can only trap SIGTERM, os.Interrupt --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c257811..8ef930bb 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ func main() { // Wait for a signal to quit: signalChan := make(chan os.Signal, 1) - signal.Notify(signalChan, os.Interrupt, os.Kill) + signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM) <-signalChan // Stop the pool