Skip to content

Commit 4aaa4ed

Browse files
committed
snapshotter: catch more signals
1 parent 3fcaebd commit 4aaa4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snapshotter/cmd/snapshotter/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func main() {
2323
var unixAddr, rootPath = os.Args[1], os.Args[2]
2424

2525
stop := make(chan os.Signal, 1)
26-
signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM)
26+
signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM, syscall.SIGPIPE, syscall.SIGHUP, syscall.SIGQUIT)
2727

2828
ctx, cancel := context.WithCancel(context.Background())
2929
defer cancel()

0 commit comments

Comments
 (0)