runner_other.go 495 B

12345678910111213141516171819202122
  1. //go:build !unix
  2. package runner
  3. import (
  4. "os"
  5. "os/exec"
  6. "syscall"
  7. )
  8. // Non-Unix platforms: cc-switch v1 only targets macOS and Linux. We compile
  9. // on other OSes so `go build` works as a smoke test, but signal forwarding
  10. // and signal decoding are no-ops. Running the binary on, e.g., Windows is
  11. // unsupported; users should use WSL.
  12. func startSignalForwarding(_ *os.Process) func() {
  13. return func() {}
  14. }
  15. func extractSignal(_ *exec.ExitError) (syscall.Signal, bool) {
  16. return 0, false
  17. }