xpra icon
Bug tracker and wiki

Changes between Initial Version and Version 1 of Ticket #203, comment 6


Ignore:
Timestamp:
03/08/13 03:10:06 (8 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #203, comment 6

    initial v1  
    55--- src/xpra/scripts/main.py    (revision 2907)
    66+++ src/xpra/scripts/main.py    (working copy)
    7 @@ -556,6 +556,10 @@
     7@@ -556,6 +556,17 @@
    88                 ssh_fail_cb(error_message)
    99                 raise IOError(error_message)
     
    1212+                #on posix, the tunnel may be shared with other processes
    1313+                #so don't kill it... which may leave it behind after use.
     14+                #but at least make sure we close all the pipes:
     15+                for name,fd in {"stdin" : child.stdin, "stdout" : child.stdout, "stderr" : child.stderr}.items():
     16+                    try:
     17+                        if fd:
     18+                            fd.close()
     19+                    except Exception, e:
     20+                        print("error closing ssh tunnel %s: %s" % (name, e))
    1421+                return
    1522             try: