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
> <a short pause, no input>
> o: StdioProtocol.connectionLost('[Failure instance: Traceback (failure with
> no frames): <class 'twisted.internet.error.ConnectionLost'>: 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.
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python