2018-05-03 22:55:49 +00:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package proxy
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2018-06-07 17:27:28 +00:00
|
|
|
"os/exec"
|
2018-05-03 22:55:49 +00:00
|
|
|
)
|
|
|
|
|
2018-05-04 01:25:11 +00:00
|
|
|
func findProcess(pid int) (*os.Process, error) {
|
2018-06-05 11:13:28 +00:00
|
|
|
// On Windows, os.FindProcess will error if the process is not alive,
|
|
|
|
// so we don't have to do any further checking. The nature of it being
|
|
|
|
// non-nil means it seems to be healthy.
|
2018-05-04 01:25:11 +00:00
|
|
|
return os.FindProcess(pid)
|
2018-05-03 22:55:49 +00:00
|
|
|
}
|
2018-06-07 17:27:28 +00:00
|
|
|
|
|
|
|
func configureDaemon(cmd *exec.Cmd) {
|
|
|
|
// Do nothing
|
|
|
|
}
|