telegraf/plugins/inputs/execd/shim/goshim_windows.go

14 lines
205 B
Go

// +build windows
package shim
import (
"os"
"os/signal"
"syscall"
)
func listenForCollectMetricsSignals(collectMetricsPrompt chan os.Signal) {
signal.Notify(collectMetricsPrompt, syscall.SIGHUP)
}