I'm new to porting but I'd like to give it a shot. I have a library which is built for linux and I want to see if I can make it build on Windows in a day.
A part of the problem seems to be the code:
ch := make(chan os.Signal, 1) signal.Notify(ch, syscall.SIGUSR2)
What would be the simplest way to emulate this process signalling in Windows in Go?
Specifically, I'm looking into what to do with this code https://github.com/influxdata/influxdb/blob/ab87c23be6c630754787dcd9113cd86bd6afaaf1/pkg/lifecycle/resource_debug.go#L30
Could I maybe use https://godoc.org/bitbucket.org/avd/go-ipc/sync#NewEvent for this?
2.1m questions
2.1m answers
60 comments
57.0k users