xpra icon
Bug tracker and wiki

Ticket #2059: hd.txt

File hd.txt, 567 bytes (added by Nathan Hallquist, 2 years ago)
Line 
1Index: xpra/net/ssh.py
2===================================================================
3--- xpra/net/ssh.py     (revision 21058)
4+++ xpra/net/ssh.py     (working copy)
5@@ -79,6 +79,8 @@
6             env["XPRA_LOG_TO_FILE"] = "0"
7             kwargs["env"] = env
8         proc = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, **kwargs)
9+        # without this the return code is always None in WSL (and becomes zero after communicate())
10+        proc.wait()
11         stdout, stderr = proc.communicate()
12         log("exec_dialog_subprocess(%s)", cmd)
13         if stderr: