You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Close the child copy of the read end in stdout capture spawning #559
proc_spawn_capture_stdout creates a pipe and passes only its write end to proc_spawn_exec_raw. After fork, the child inherits both ends, but its setup has no knowledge of the unused read end and does not close it before exec. If the parent closes its capture read fd, the child still holds a reader; writing can fill the pipe and block instead of observing that the consumer has gone away. The unused fd is also leaked into the executed program.
Close unused capture pipe ends in the appropriate process before exec, or use a correct close-on-exec ownership strategy.
Test the child descriptor inventory and early closure of the parent read end without leaving a blocked child.
Cover fork/exec setup failures and repeated capture operations for fd leaks.
Preserve the intended inherited stdout and keep this fix separate from general remapping of shared/cyclic descriptors.
Audit status: static source inspection against canonical master ea74c2dafc31da876e5561f2d176ba719f5a0458 on 2026-09-10. No compiler build, test execution, implementation change or local reproduction was performed for this report. The examples describe the source-derived behavior to verify when implementing the fix.
Activity
fix: preserve numeric results, file data, and I/O deadlines (wavefnd#631