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

Dominik Csapak d.csapak at proxmox.com
Wed Dec 13 12:44:38 CET 2017


Reviewed-By: Dominik Csapak <d.csapak at proxmox.com>
On 12/12/2017 10:57 AM, Wolfgang Bumiller wrote:
> 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 {
> 





More information about the pve-devel mailing list