Reassign or discard Popen().stdout from a server process

John O'Hagan research at johnohagan.com
Tue Feb 1 21:41:11 EST 2011


On Tue, 1 Feb 2011, John O'Hagan wrote:

> 
> So far my best bet seems to be closing stdin, which doesn't seem very
> clean, but it does what I want and seems to be just as fast as using
> stdin=open(os.devnull) in the Popen call in the first place.

...and both references to stdin above should have been to stdout (I really 
shouldn't post last thing at night).

> Thanks,
> 
> John




More information about the Python-list mailing list