import subprocess import threading class AsyncReader(): def __init__(self,stream): self._stream=stream self._char="" self.t=threading.Thread(target=self._get, daemon ...
What we really need to stop all of these deadlocks caused by pipe buffering is a non-blocking read. The problem is that the subprocess module doesn’t support non-blocking pipe operations, although ...