refacotr: move signal handling and pprof to grace package
This commit is contained in:
@@ -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()) {
|
||||
}
|
||||
Reference in New Issue
Block a user