cmd/chihaya: make things work on windows

This commit is contained in:
Leo Balduf
2017-12-05 10:10:57 +01:00
parent 395e59aef3
commit 35d146f675
3 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
// +build darwin freebsd linux netbsd openbsd dragonfly solaris
package main
import (
"os"
"os/signal"
"syscall"
)
func makeReloadChan() <-chan os.Signal {
reload := make(chan os.Signal)
signal.Notify(reload, syscall.SIGUSR1)
return reload
}