Update message when user hits CRTL+C to not imply handling SIGSTOP but SIGTERM/SIGKILL

This commit is contained in:
Fridrik Asmundsson 2023-05-27 10:10:30 +00:00
parent 0131781808
commit a4c94957e6

View File

@ -127,7 +127,7 @@ func main() {
go func() { go func() {
<-c <-c
cancel() cancel()
fmt.Println("Received interrupt, stopping... Press CTRL+C again to force stop") fmt.Println("Received interrupt, shutting down... Press CTRL+C again to force shutdown")
<-c <-c
fmt.Println("Forcing stop") fmt.Println("Forcing stop")
os.Exit(1) os.Exit(1)