aboutsummaryrefslogtreecommitdiff
path: root/go/weed/signal_handling.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2016-04-14 01:30:26 -0700
committerchrislusf <chris.lu@gmail.com>2016-04-14 01:30:26 -0700
commit0649d778a72d4c0c27b3f2049fdb6f6e18956a65 (patch)
treefd8f58c8639aba6038cf6bef0d382fc806a8b48c /go/weed/signal_handling.go
parent95e0d2f1b236f97f70d51a62c3df6a937a27286d (diff)
downloadseaweedfs-0649d778a72d4c0c27b3f2049fdb6f6e18956a65.tar.xz
seaweedfs-0649d778a72d4c0c27b3f2049fdb6f6e18956a65.zip
pooling []byte
reduce the number of requests to make([]byte)
Diffstat (limited to 'go/weed/signal_handling.go')
-rw-r--r--go/weed/signal_handling.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/go/weed/signal_handling.go b/go/weed/signal_handling.go
index 2004bb088..a8f166382 100644
--- a/go/weed/signal_handling.go
+++ b/go/weed/signal_handling.go
@@ -20,7 +20,8 @@ func OnInterrupt(fn func()) {
// syscall.SIGHUP,
syscall.SIGINT,
syscall.SIGTERM,
- syscall.SIGQUIT)
+ // syscall.SIGQUIT,
+ )
go func() {
for _ = range signalChan {
fn()