From: Fredrik Tolf Date: Mon, 7 Jan 2013 06:35:14 +0000 (+0100) Subject: Make sure to flush stdout in sshsock. X-Git-Tag: 0.2~3 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=1a8ebe554dad381da2df0200b50a9c9f676d84c2;p=pdm.git Make sure to flush stdout in sshsock. --- diff --git a/pdm/sshsock.py b/pdm/sshsock.py index d96f4ff..dd53e6a 100644 --- a/pdm/sshsock.py +++ b/pdm/sshsock.py @@ -67,8 +67,10 @@ def cli(): sk.connect(sys.argv[1]) except socket.error as err: sys.stdout.write("SSOCK-connect: %s\n" % err) + sys.stdout.flush() return sys.stdout.write("SSOCK+\n") + sys.stdout.flush() buf1 = "" buf2 = "" while True: