Skip to content
Snippets Groups Projects
Commit c3c84f6b authored by Guido Günther's avatar Guido Günther
Browse files

Terminate nc on EOF

Closes: #564053
Thanks: Gabor Gombas for the patch
parent 1c0e0b54
No related branches found
No related tags found
No related merge requests found
From: Gabor Gombas <gombasg@sztaki.hu>
Date: Fri, 8 Jan 2010 11:00:07 +0100
Subject: [PATCH] Terminate nc on EOF
Closes: #564053
---
src/remote/remote_driver.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index d6f5fce..a4055f8 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -730,7 +730,7 @@ doRemoteOpen (virConnectPtr conn,
}
case trans_ssh: {
- int j, nr_args = 6;
+ int j, nr_args = 8;
if (username) nr_args += 2; /* For -l username */
if (no_tty) nr_args += 5; /* For -T -o BatchMode=yes -e none */
@@ -764,6 +764,8 @@ doRemoteOpen (virConnectPtr conn,
}
cmd_argv[j++] = strdup (priv->hostname);
cmd_argv[j++] = strdup (netcat ? netcat : "nc");
+ cmd_argv[j++] = strdup ("-q");
+ cmd_argv[j++] = strdup ("0");
cmd_argv[j++] = strdup ("-U");
cmd_argv[j++] = strdup (sockname ? sockname :
(flags & VIR_CONNECT_RO
--
......@@ -3,3 +3,4 @@
0003-allow-libvirt-group-to-access-the-socket.patch
0004-fix-Debian-specific-path-to-hvm-loader.patch
0005-Also-look-for-dmi-information-in-sys-class.patch
0006-Terminate-nc-on-EOF.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment