[pve-devel] [PATCH qemu-server 1/2] fix #2275: die on invalid sendkey
Dominik Csapak
d.csapak at proxmox.com
Mon Jul 15 14:35:29 CEST 2019
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 '';
});
}
--
2.20.1
More information about the pve-devel
mailing list