Update message when user hits CRTL+C to not imply handling SIGSTOP but SIGTERM/SIGKILL
This commit is contained in:
parent
0131781808
commit
a4c94957e6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user