mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 01:42:54 +03:00
ce2d95cd75
It's possible to create a deadlock with stdin/stdout I/O on a single thread: * the child process may fill its stdout buffer, and have to wait for the parent process to read it, * but the parent process may be waiting until its stdin write finishes before reading the stdout. Therefore, the parent process should use separate threads for writing and reading.