Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/virt-manager/files: virt-manager-0.8.2-ssh-tunnel-shutdown.patch
Date: Thu, 04 Feb 2010 17:48:42
Message-Id: E1Nd5ol-0003Tl-3s@stork.gentoo.org
1 cardoe 10/02/04 17:48:39
2
3 Added: virt-manager-0.8.2-ssh-tunnel-shutdown.patch
4 Log:
5 fix issue when nc doesn't handle the EOF on socket close correctly. According to upstream Debian has an issue with it but they're patching up their nc to respect EOF better. So, the only solution is to kill the ssh tunnel instead of just assuming it'll close eventually
6 (Portage version: 2.1.7.17/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-emulation/virt-manager/files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virt-manager/files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virt-manager/files/virt-manager-0.8.2-ssh-tunnel-shutdown.patch?rev=1.1&content-type=text/plain
13
14 Index: virt-manager-0.8.2-ssh-tunnel-shutdown.patch
15 ===================================================================
16 diff -Nur virt-manager-0.8.2/src/virtManager/console.py virt-manager-0.8.2-ssh-tunnel/src/virtManager/console.py
17 --- virt-manager-0.8.2/src/virtManager/console.py 2009-12-14 16:40:30.000000000 -0600
18 +++ virt-manager-0.8.2-ssh-tunnel/src/virtManager/console.py 2010-02-04 11:40:17.000000000 -0600
19 @@ -29,6 +29,7 @@
20 import gtkvnc
21 import os
22 import socket
23 +import signal
24
25 from virtManager.error import vmmErrorDialog
26
27 @@ -534,7 +535,7 @@
28 logging.debug("Shutting down tunnel PID %d FD %d" %
29 (self.vncTunnel[1], self.vncTunnel[0].fileno()))
30 self.vncTunnel[0].close()
31 - os.waitpid(self.vncTunnel[1], 0)
32 + os.kill(self.vncTunnel[1], signal.SIGTERM)
33 self.vncTunnel = None
34
35 def try_login(self, src=None):