Disable SIGUSR1 handler for Windows (not available)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// +build !windows !plan9
|
||||
|
||||
package scanner
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func init() {
|
||||
signals := []os.Signal{
|
||||
syscall.SIGUSR1,
|
||||
}
|
||||
signal.Notify(sigChan, signals...)
|
||||
}
|
||||
Reference in New Issue
Block a user