aboutsummaryrefslogtreecommitdiff
path: root/go/weed/signal_handling.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2014-05-13 19:26:05 -0700
committerChris Lu <chris.lu@gmail.com>2014-05-13 19:26:05 -0700
commit5367d965127d44aad1e0d5afc665c462c54a724a (patch)
treef7d276b3c4df0ac61b4c3b4c2de15fb65699c648 /go/weed/signal_handling.go
parentdac95464b86bf7ef4da7beec6a13667de8933367 (diff)
downloadseaweedfs-5367d965127d44aad1e0d5afc665c462c54a724a.tar.xz
seaweedfs-5367d965127d44aad1e0d5afc665c462c54a724a.zip
0.59 beta
Diffstat (limited to 'go/weed/signal_handling.go')
-rw-r--r--go/weed/signal_handling.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/go/weed/signal_handling.go b/go/weed/signal_handling.go
index 5d57c8fdb..d26e3495e 100644
--- a/go/weed/signal_handling.go
+++ b/go/weed/signal_handling.go
@@ -14,6 +14,7 @@ func OnInterrupt(fn func()) {
signal.Notify(signalChan,
os.Interrupt,
os.Kill,
+ syscall.SIGALRM,
syscall.SIGHUP,
syscall.SIGINT,
syscall.SIGTERM,