cirruslabs / cirrus-ci-agent

Agent to execute Cirrus CI tasks
Mozilla Public License 2.0
13 stars 6 forks source link

Don't mess with piper #326

Closed edigaryev closed 12 months ago

edigaryev commented 12 months ago

This fixes getting a SIGPIPE due to piper closure after the child process starts: https://github.com/cirruslabs/cirrus-ci-agent/blob/697ced3a26b6cd8f66a5eea5b0b8ccf9bfd93554/internal/executor/shell.go#L194-L198

No descriptor is inherited by the child process when using io.MultiWriter, so let's use it indirectly.