mirror of
https://github.com/la5nta/pat
synced 2026-08-07 22:32:06 -04:00
Fix Windows build
This commit is contained in:
parent
9bc6ac22b1
commit
31bd0f6ff2
1 changed files with 3 additions and 1 deletions
|
|
@ -11,8 +11,10 @@ import (
|
|||
"os/signal"
|
||||
)
|
||||
|
||||
func notifySignals(sig chan<- os.Signal) {
|
||||
func notifySignals() <-chan os.Signal {
|
||||
sig := make(chan os.Signal, 1)
|
||||
signal.Notify(sig, os.Interrupt)
|
||||
return sig
|
||||
}
|
||||
|
||||
func isSIGHUP(s os.Signal) bool { return false }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue