mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-20 14:54:48 -07:00
cmd/chihaya: make things work on windows
This commit is contained in:
15
cmd/chihaya/signal_unix.go
Normal file
15
cmd/chihaya/signal_unix.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user