mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 13:36:15 +00:00
turn off alarm timer after accepting a vnc connection
else we always get a failed task when the vnc connection is running longer than $timeout Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
2998737860
commit
058ff55b39
@ -1435,6 +1435,7 @@ __PACKAGE__->register_method({
|
||||
local $SIG{ALRM} = sub { die "connection timed out\n" };
|
||||
alarm $timeout;
|
||||
accept(my $cli, $sock) or die "connection failed: $!\n";
|
||||
alarm(0);
|
||||
close($sock);
|
||||
if (PVE::Tools::run_command($cmd,
|
||||
output => '>&'.fileno($cli),
|
||||
|
Loading…
Reference in New Issue
Block a user