[Tutor] subprocess.Popen basics
Alan Gauld
alan.gauld at btinternet.com
Tue Oct 28 19:32:47 CET 2014
On 28/10/14 15:31, Adam Jensen wrote:
> -------------------------------------------------------------------------
> bufsize will be supplied as the corresponding argument to the open()
> function when creating the stdin/stdout/stderr pipe file objects:
> And I get these results (on CentOS-6.5-x86):
>
> | bufsize | results |
> |---------+---------|
> | default | hangs |
> | -1 | hangs |
> | 0 | works |
> | 1 | hangs |
> | >=2 | works |
I tried -1 and 1 on my Lubuntu and it still works fine.
Definitely weird, it begins to look like a CentOS build issue
but what is CentOS doing different to Lubuntu/Suse/OpenBSD etc?
From memory CentOS is basically a free version of Red Hat
Enterprise Linux? I can't see why that would be significantly
different in stdin/out behaviour.
weirder and weirder
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list