If the Go event recorder itself dies or cannot start, the rest of its
stream (stdout, and the stderr side) now drains through cat, so go test
never writes into a closed pipe and its own exit status stays the answer.
Twins with a recorder that exits after 100 bytes and a large stream:
exit 0 stays 0, exit 7 stays 7.
Stopping the load sampler now waits on its pidfd (readable on exit) for
2 s; a sampler still alive leaves load.incomplete beside its rows and a
stderr note instead of returning as if it had flushed. The stop test
checks the process is gone (no file-stability guess) and a SIGTERM-
ignoring stand-in yields the note within 5 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>