[pve-devel] applied: [PATCH qemu-server 1/2] fix #2275: die on invalid sendkey

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jul 18 18:49:28 CEST 2019


On 7/15/19 2:35 PM, Dominik Csapak wrote:
> sendkey does not return anything if it is succesful and the error otherwise
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  PVE/QemuServer.pm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 9f29927..b79362b 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -5871,7 +5871,8 @@ sub vm_sendkey {
>  	my $conf = PVE::QemuConfig->load_config($vmid);
>  
>  	# there is no qmp command, so we use the human monitor command
> -	vm_human_monitor_command($vmid, "sendkey $key");
> +	my $res = vm_human_monitor_command($vmid, "sendkey $key");
> +	die $res if $res ne '';
>      });
>  }
>  
> 

applied, thanks!




More information about the pve-devel mailing list