INNER CODE UNIT · Go
versionCheckOnSigterm
lucagrulla/cw · versioncheck.go:40
func versionCheckOnSigterm() {
//only way to avoid print of the signal: interrupt message
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
os.Exit(0)
}
INNER CODE UNIT · Go
lucagrulla/cw · versioncheck.go:40
func versionCheckOnSigterm() {
//only way to avoid print of the signal: interrupt message
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
os.Exit(0)
}