Dialog with a process via subprocess.Popen blocks forever

bayer.justin at googlemail.com bayer.justin at googlemail.com
Thu Mar 1 04:35:05 EST 2007


Hi,

Thanks for your answer. I had a look into the fcntl module and tried
to unlock the output-file, but

>>> fcntl.lockf(x.stdout, fcntl.LOCK_UN)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 9] Bad file descriptor

I wonder why it does work with the sys.stdin It's really a pity, it's
the first time python does not work as expected. =/

Flushing the stdin did not help, too.

Regards,
-Justin




More information about the Python-list mailing list