You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Programs that use buffered I/O (don't disable buffering) can result in a deadlock with a parent process trying to read/write data from/to the child process stdout/stdin.
There are solutions that can make the child process think it's writing to a terminal, and as a result make the I/O unbuffered.
Find a cross platform solution for Linux, Windows and Mac and implement so we have more robust control.
Example scenario of deadlock:
child writes
child waits for input
parent tried to read what child wrote to stdout and then write back based on what it read
In this case if child I/O is buffered then it's possible that it does not flush and parent and child both keep waiting (deadlock)