[Python 2.4/2.5] subprocess module is sorely deficient?
Mark Wooding
mdw at distorted.org.uk
Tue Apr 22 13:28:56 EDT 2008
Nick Craig-Wood <nick at craig-wood.com> wrote:
> Harishankar <v.harishankar at gmail.com> wrote:
>> 1. Create non-blocking pipes which can be read in a separate thread
>> [...]
>
> You are correct on both of those points.
I must be missing something. What's wrong with spawning the subprocess
with subprocess.Popen as usual, passing subprocess.PIPE as stdin/stdout/
whatever, making your end nonblocking with fcntl.fcntl and then using
os.read/os.write in the obvious ways?
-- [mdw]
More information about the Python-list
mailing list