Support Go execd plugins with shim (#7283)
This commit is contained in:
13
plugins/inputs/execd/shim/goshim_windows.go
Normal file
13
plugins/inputs/execd/shim/goshim_windows.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build windows
|
||||
|
||||
package shim
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func listenForCollectMetricsSignals(collectMetricsPrompt chan os.Signal) {
|
||||
signal.Notify(collectMetricsPrompt, syscall.SIGHUP)
|
||||
}
|
||||
Reference in New Issue
Block a user