Closed edigaryev closed 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
SIGPIPE
No descriptor is inherited by the child process when using io.MultiWriter, so let's use it indirectly.
io.MultiWriter
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-L198No descriptor is inherited by the child process when using
io.MultiWriter
, so let's use it indirectly.