mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
add os.Kill signal to handle.
go fmt some code.
This commit is contained in:
@@ -220,7 +220,7 @@ func runServer(cmd *Command, args []string) bool {
|
||||
|
||||
// deal with control+c
|
||||
signalChan := make(chan os.Signal, 1)
|
||||
signal.Notify(signalChan, os.Interrupt)
|
||||
signal.Notify(signalChan, os.Interrupt, os.Kill)
|
||||
go func() {
|
||||
for _ = range signalChan {
|
||||
volumeServer.Shutdown()
|
||||
|
Reference in New Issue
Block a user