Make sure to flush stdout in sshsock.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 7 Jan 2013 06:35:14 +0000 (07:35 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 7 Jan 2013 06:35:14 +0000 (07:35 +0100)
pdm/sshsock.py

index d96f4ff..dd53e6a 100644 (file)
@@ -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: