29 Jul
2010
29 Jul
'10
8:13 a.m.
On Thu, 2010-07-29 at 11:23 +0400, Alexey wrote:
The same happens if you redirect output to a pipe (no matter if it a named FIFO or an anonymous pipe). But if you redirect output to a file or to a /dev/null, this happens: $ ./program.py > /dev/null o: StdioProtocol.connectionLost('[Failure instance: Traceback (failure with no frames):
: Connection to the other side was lost in a non-clean fashion. o: ]')OK $
This was a bug, and was fixed in Twisted 10.1. From the release notes: """ - twisted.internet.stdio now supports stdout being redirected to a normal file (except when using epollreactor). (#2259) """ So, upgrade to Twisted 10.1.