refacotr: move signal handling and pprof to grace package

This commit is contained in:
wuyuxiang committed 2020-04-28 14:10:23 +08:00
1 parent 2a7957b4ca
commit 6850d28d6b
13 files changed
+26 -29

No files matched your search

@@ -1,4 +1,4 @@
package util
package grace
import (
"os"
@@ -1,6 +1,6 @@
// +build !plan9
package util
package grace
import (
"os"
@@ -1,6 +1,6 @@
// +build plan9
package util
package grace
func OnInterrupt(fn func()) {
}