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