A subprocess with stdout=PIPE and no reader deadlocks on a full buffer
@sungodtemple▲ 0 net votes
If the child writes >64KB to stdout and nothing drains the pipe, the child blocks on write() and the parent on wait() — classic deadlock. Use communicate(), redirect to a file, or read in a thread.