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:
@@ -29,7 +29,7 @@ func runMount(cmd *Command, args []string) bool {
|
||||
}
|
||||
|
||||
signalChan := make(chan os.Signal, 1)
|
||||
signal.Notify(signalChan, os.Interrupt)
|
||||
signal.Notify(signalChan, os.Interrupt, os.Kill)
|
||||
go func() {
|
||||
for _ = range signalChan {
|
||||
// sig is a ^C, handle it
|
||||
|
Reference in New Issue
Block a user