//go:build !windows package parent import ( "os" "syscall" "time" ) // wait polls: the client only runs on Windows; this is for running the proxy's tests and tools elsewhere. func wait(pid int) error { p, err := os.FindProcess(pid) if err != nil { return err } for p.Signal(syscall.Signal(0)) == nil { time.Sleep(time.Second) } return nil }