• Roman Alifanov's avatar
    Fix coproc fd race condition on 32-bit systems · 5f7339cd
    Roman Alifanov authored
    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.
    5f7339cd