<div dir="ltr">Centos has SELinux enabled by default. I dont know if SELinux is causing your problem, but it is always worth looking at.<div><br></div><div>SELinux can keep a process from accessing files or executing another process. <br><div><br></div><div>Try temporarily disabling SELinux by running setenforce=0 as root. Then see if python does what you expect.</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 3:04 PM, Alan Gauld <span dir="ltr"><<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 28/10/14 19:23, Adam Jensen wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
platform. This is what I've discovered so far:<br>
<br>
| | CentOS-6.5 | OpenBSD-5.5 | DragonFly-3.8.2 |<br>
| bufsize | Python-3.4.1 | Python-3.3.2 | Python-3.3.3 |<br>
|---------------------+-------<u></u>-------+--------------+-------<u></u>----------|<br>
| default | hangs | works | works |<br>
| -1 | hangs | works | works |<br>
| 0 | works | works | works |<br>
| 1 | hangs | works | works |<br>
| >=2 & <(# of bytes) | works | works | works |<br>
| >=(# of bytes) | hangs | works | works |<br>
<br>
</blockquote>
<br></span>
Looks like you might be best trying this on a CentOS forum/list.<br>
Its not exactly a mainstream distro so the number of folks on this list who can help is probably limited and even on the main Python list there probably are only a handful of CentOS users. And it looks increasingly like a CentOS configuration issue.<span class="im HOEnZb"><br>
<br>
-- <br>
Alan G<br>
Author of the Learn to Program web site<br>
<a href="http://www.alan-g.me.uk/" target="_blank">http://www.alan-g.me.uk/</a><br>
<a href="http://www.flickr.com/photos/alangauldphotos" target="_blank">http://www.flickr.com/photos/<u></u>alangauldphotos</a><br>
<br></span><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br></div>