pat/sighup_windows.go
Martin Hebnes Pedersen 31bd0f6ff2 Fix Windows build
2025-06-22 20:27:36 +02:00

20 lines
408 B
Go

// Copyright 2022 Martin Hebnes Pedersen (LA5NTA). All rights reserved.
// Use of this source code is governed by the MIT-license that can be
// found in the LICENSE file.
//go:build windows
package main
import (
"os"
"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 }