We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf06b32 + 1850c04 commit e31c3b5Copy full SHA for e31c3b5
1 file changed
cli/server/server.go
@@ -8,6 +8,7 @@ import (
8
"os"
9
"os/signal"
10
"runtime"
11
+ "syscall"
12
"time"
13
14
"github.com/nspcc-dev/neo-go/cli/cmdargs"
@@ -119,6 +120,7 @@ func newGraceContext() context.Context {
119
120
ctx, cancel := context.WithCancel(context.Background())
121
stop := make(chan os.Signal, 1)
122
signal.Notify(stop, os.Interrupt)
123
+ signal.Notify(stop, syscall.SIGTERM)
124
go func() {
125
<-stop
126
cancel()
0 commit comments