real · 8 min
The subprocess call that hangs
The child writes a hundred kilobytes to a pipe and the parent waits for it to finish before reading. It never finishes. Fix it so both processes end, without changing what the child writes.
Your program
Trace
Press Run it.