Closed chicknsoup closed 4 years ago
Thanks for the PR!
Looks like this supports linux and windows, but misses the other operating systems. See sys_*.go
files for how to do with build comments
Can probably be proc_slave_windows.go
// +build windows
and proc_slave_others.go
// +build !windows
(untested)
Can probably be
proc_slave_windows.go
// +build windows
andproc_slave_others.go
// +build !windows
(untested)
Thanks. I forgot other oses as I only build linux and windows binaries.
Merged! Thanks :)
Hey @chicknsoup I just added auto testing and the windows build is failing. See https://github.com/jpillora/overseer/actions/runs/65595163
I don't have a windows machine, can you please check this?
I pushed a fix but needs testing
Slave process watches its parent by sending Signal(0), but as stated in
os/exec.go
sending Interrupt on Windows is not implemented. This cause prog exits with status code 1 error.This fix uses
gopsutil
to check for process existence on Windows.