diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-04-27 23:59:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 23:59:13 -0700 |
| commit | 47c4a62c5db8564d036cc96c2f4a097494a2567a (patch) | |
| tree | 2a6eb0dd50a530dfb72496a69715438c9aa15a44 /weed/util | |
| parent | 2a7957b4ca83fdb5232d761074e81dce6b99648f (diff) | |
| parent | 6850d28d6b99155dca2da8fa8bbf76124f528fa4 (diff) | |
| download | seaweedfs-47c4a62c5db8564d036cc96c2f4a097494a2567a.tar.xz seaweedfs-47c4a62c5db8564d036cc96c2f4a097494a2567a.zip | |
Merge pull request #1293 from wyxloading/refactor_signal_handler
refactor: move signal handling and pprof to grace package
Diffstat (limited to 'weed/util')
| -rw-r--r-- | weed/util/grace/pprof.go (renamed from weed/util/pprof.go) | 2 | ||||
| -rw-r--r-- | weed/util/grace/signal_handling.go (renamed from weed/util/signal_handling.go) | 2 | ||||
| -rw-r--r-- | weed/util/grace/signal_handling_notsupported.go (renamed from weed/util/signal_handling_notsupported.go) | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/weed/util/pprof.go b/weed/util/grace/pprof.go index a2621ceee..14686bfc8 100644 --- a/weed/util/pprof.go +++ b/weed/util/grace/pprof.go @@ -1,4 +1,4 @@ -package util +package grace import ( "os" diff --git a/weed/util/signal_handling.go b/weed/util/grace/signal_handling.go index 99447e8be..7cca46764 100644 --- a/weed/util/signal_handling.go +++ b/weed/util/grace/signal_handling.go @@ -1,6 +1,6 @@ // +build !plan9 -package util +package grace import ( "os" diff --git a/weed/util/signal_handling_notsupported.go b/weed/util/grace/signal_handling_notsupported.go index c389cfb7e..5335915a1 100644 --- a/weed/util/signal_handling_notsupported.go +++ b/weed/util/grace/signal_handling_notsupported.go @@ -1,6 +1,6 @@ // +build plan9 -package util +package grace func OnInterrupt(fn func()) { } |
