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

From Nobody <nobody@nowhere.com>
Subject Re: Reassign or discard Popen().stdout from a server process
Date 2011-02-09 05:24 +0000
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>
Organization Zen Internet

Show all headers | 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