flush looponfail output to get around line-buffering
--HG-- branch : trunk
This commit is contained in:
parent
c38bb72205
commit
fabd967595
|
@ -79,7 +79,10 @@ class RemoteControl(object):
|
||||||
slave_runsession(channel, config, fullwidth, hasmarkup)
|
slave_runsession(channel, config, fullwidth, hasmarkup)
|
||||||
""")
|
""")
|
||||||
remote_outchannel = channel.receive()
|
remote_outchannel = channel.receive()
|
||||||
remote_outchannel.setcallback(out._file.write)
|
def write(s):
|
||||||
|
out._file.write(s)
|
||||||
|
out._file.flush()
|
||||||
|
remote_outchannel.setcallback(write)
|
||||||
channel = self.channel = PickleChannel(channel)
|
channel = self.channel = PickleChannel(channel)
|
||||||
channel.send((self.config, out.fullwidth, out.hasmarkup))
|
channel.send((self.config, out.fullwidth, out.hasmarkup))
|
||||||
self.trace("set up of slave session complete")
|
self.trace("set up of slave session complete")
|
||||||
|
|
Loading…
Reference in New Issue