From: Dietmar Maurer Date: Fri, 8 Jun 2018 05:06:37 +0000 (+0200) Subject: lxc enter: use IO::Select->select X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=commitdiff_plain;h=e4c016351a2e807c569c4706f778298529b16761 lxc enter: use IO::Select->select --- diff --git a/PVE/APIClient/Commands/lxc.pm b/PVE/APIClient/Commands/lxc.pm index f0c85f7..c092028 100644 --- a/PVE/APIClient/Commands/lxc.pm +++ b/PVE/APIClient/Commands/lxc.pm @@ -277,10 +277,10 @@ __PACKAGE__->register_method ({ }; while (1) { - while(my @ready = $select->can_read(3)) { + while(my ($readable) = IO::Select->select($select, undef, undef, 3)) { $check_terminal_size->() if $winch_received; - foreach my $fh (@ready) { + foreach my $fh (@$readable) { if ($fh == $web_socket) { # Read from WebSocket