[pve-devel] [PATCH v2 qemu-server 2/2] termproxy, vncproxy: use -escape 0 for qm terminal

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Dec 12 10:41:29 CET 2017


There's no reason to have Ctrl+O terminate these sessions.

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
No changes.

 PVE/API2/Qemu.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index 8ff6bd4..0983ce6 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1430,7 +1430,7 @@ __PACKAGE__->register_method({
 	    if ($conf->{vga} && ($conf->{vga} =~ m/^serial\d+$/)) {
 
 
-		my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid, '-iface', $conf->{vga} ];
+		my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid, '-iface', $conf->{vga}, '-escape', '0' ];
 
 		$cmd = ['/usr/bin/vncterm', '-rfbport', $port,
 			'-timeout', $timeout, '-authpath', $authpath,
@@ -1558,7 +1558,7 @@ __PACKAGE__->register_method({
 	my $remcmd = $remip ?
 	    ['/usr/bin/ssh', '-e', 'none', '-t', $remip, '--'] : [];
 
-	my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid];
+	my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid, '-escape', '0'];
 	push @$termcmd, '-iface', $serial if $serial;
 
 	my $realcmd = sub {
-- 
2.11.0





More information about the pve-devel mailing list