add os.Kill signal to handle.

go fmt some code.
This commit is contained in:
Chris Lu
2014-05-13 11:32:10 -07:00
parent dc24bad791
commit 029923329d
5 changed files with 4 additions and 6 deletions

View File

@@ -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()