Fix coproc fd race condition on 32-bit systems
Duplicate coproc fds with exec instead of copying fd numbers.
Bash auto-closes coproc fds when the process exits, causing
race conditions on slower systems. Save PID before coproc
cleanup and close original write fd after dup to prevent hangs.
Showing
Please
register
or
sign in
to comment