Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56146

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

Path csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!prichard.zen.co.uk.POSTED!not-for-mail
From Nobody <nobody@nowhere.com>
Subject Re: Reassign or discard Popen().stdout from a server process
Date Wed, 09 Feb 2011 05:24:48 +0000
User-Agent Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)
Message-Id <pan.2011.02.09.05.24.47.922000@nowhere.com>
Newsgroups comp.lang.python
References <mailman.1533.1296549030.6505.python-list@python.org> <pan.2011.02.03.09.48.35.672000@nowhere.com> <mailman.1647.1296834558.6505.python-list@python.org>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Lines 11
Organization Zen Internet
NNTP-Posting-Host 97323c42.news.zen.co.uk
X-Trace DXC=`n?;VRaQ\E0V5Y;D[feRd70g@SS;SF6n7RiiCXJE[K>7b^f7@N:5[R3Yo[@=aWRTI2am:ERbGbEa3
X-Complaints-To abuse@zen.co.uk
Xref csiph.com comp.lang.python:56146

Show key headers only | View raw


On Fri, 04 Feb 2011 15:48:55 +0000, John O'Hagan wrote:

> But I'm still a little curious as to why even unsuccessfully attempting to
> reassign stdout seems to stop the pipe buffer from filling up.

It doesn't. If the server continues to run, then it's ignoring/handling
both SIGPIPE and the EPIPE error. Either that, or another process has the
read end of the pipe open (so no SIGPIPE/EPIPE), and the server is using
non-blocking I/O or select() so that it doesn't block writing its
diagnostic messages.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Reassign or discard Popen().stdout from a server process "John O'Hagan" <mail@johnohagan.com> - 2011-02-01 08:30 +0000
  Re: Reassign or discard Popen().stdout from a server process "John O'Hagan" <research@johnohagan.com> - 2011-02-04 15:48 +0000
    Re: Reassign or discard Popen().stdout from a server process "John O'Hagan" <research@johnohagan.com> - 2011-02-10 08:35 +0000
    Re: Reassign or discard Popen().stdout from a server process Nobody <nobody@nowhere.com> - 2011-02-09 05:24 +0000
  Re: Reassign or discard Popen().stdout from a server process Nobody <nobody@nowhere.com> - 2011-02-03 09:48 +0000

csiph-web