Created
May 4, 2017 00:54
-
-
Save lisp-ceo/439af1b9673ee080acad106f32fec8a1 to your computer and use it in GitHub Desktop.
Catching SIGTERM in Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
term := make(chan os.Signal, 1) | |
signal.Notify(term, os.Interrupt, syscall.SIGTERM) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment