Move sigterm channel to internal/util

This commit is contained in:
niten94
2024-06-17 15:11:13 +08:00
parent 9eb8782ff2
commit 26ae1b95cc
2 changed files with 6 additions and 5 deletions

View File

@@ -41,6 +41,8 @@ var (
// Stdout is a buffer that is written to stdout when micro closes
Stdout *bytes.Buffer
// Sigterm is a channel where micro exits when written
Sigterm chan os.Signal
)
func init() {