Re: [PATCH]: virt-manager let netcat quit on EOF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This time with the attachment.

On Thu, Apr 16, 2009 at 02:27:25PM +0200, Guido Günther wrote:
> Hi,
> attached patch adds "-q 0" to quit on EOF on stdin to the netcat calls
> uesd for vnc forwarding via ssh. Without it the nc call keeps hanging
> around which makes the waitpid wait forever and lets the whole main
> window freeze [1][2].
> Cheers,
>  -- Guido
> 
> [1] http://bugs.debian.org/519979
> [2] http://bugs.debian.org/521137
# HG changeset patch
# User Guido Günther <agx@xxxxxxxxxxx>
# Date 1239880087 -7200
# Node ID 64b1e55e4aa5c6348c0ef53701729e50b54411b6
# Parent  96e50adeb2abc320d941808f4cf16942f0f4a179
Pass -q0 to netcat so it terminates when the fd gets closed

diff -r 96e50adeb2ab -r 64b1e55e4aa5 src/virtManager/details.py
--- a/src/virtManager/details.py	Tue Apr 14 16:50:28 2009 -0400
+++ b/src/virtManager/details.py	Thu Apr 16 13:08:07 2009 +0200
@@ -1227,7 +1227,7 @@
             argv = ["ssh", "ssh", "-p", sshport]
             if username:
                 argv += ['-l', username]
-            argv += [ server, "nc", vncaddr, str(vncport) ]
+            argv += [ server, "nc", "-q", "0", vncaddr, str(vncport) ]
             os.execlp(*argv)
             os._exit(1)
         else:
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux