summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorAaron Klotz <aaron@tailscale.com>2025-09-15 11:40:34 -0600
committerAaron Klotz <aaron@tailscale.com>2025-09-15 12:33:26 -0700
commit4bb03609bc95734644855976525d7203bb0da7f6 (patch)
treecc4a60eb50dd651262f3d6bec80f3f3c6878c867 /control/controlknobs/controlknobs.go
parent6fb316f5edceb5d534a22058dc6804263971e269 (diff)
downloadtailscale-4bb03609bc95734644855976525d7203bb0da7f6.tar.xz
tailscale-4bb03609bc95734644855976525d7203bb0da7f6.zip
tool/gocross: ensure child process error codes are propagated on non-Unix
The Unix implementation of doExec propagates error codes by virtue of the fact that it does an execve; the replacement binary will return the exit code. On non-Unix, we need to simulate these semantics by checking for an ExitError and, when present, passing that value on to os.Exit. We also add error handling to the doExec call for the benefit of handling any errors where doExec fails before being able to execute the desired binary. Updates https://github.com/tailscale/corp/issues/29940 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions