Fix SIGUSR1 work when ScanInterval=0

This commit is contained in:
Deluan
2021-04-29 13:10:10 -04:00
parent a35de2bfd1
commit 8a07bac2a2
3 changed files with 45 additions and 19 deletions
+17
View File
@@ -0,0 +1,17 @@
// +build !windows
// +build !plan9
package cmd
import (
"os"
"os/signal"
"syscall"
)
func init() {
signals := []os.Signal{
syscall.SIGUSR1,
}
signal.Notify(sigChan, signals...)
}