mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-04 14:35:32 +00:00
`TestTreeKillCancelBeforeCaptureKillsTree` fails intermittently on CI, e.g. https://gitea.com/gitea/runner/actions/runs/1155856. Dash, the Ubuntu `/bin/sh`, points a background job's stdin at `/dev/null` before applying its redirections, so `cat <&0 &` read EOF and exited at once and the liveness check raced it. The pipe is now handed over on fd 3, which dash leaves alone. Introduced in https://gitea.com/gitea/runner/pulls/1338 Reviewed-on: https://gitea.com/gitea/runner/pulls/1360 Reviewed-by: Zettat123 <[email protected]>