[pve-devel] [PATCH pve-client 1/7] lxc enter: use IO::Select->select

Dietmar Maurer dietmar at proxmox.com
Fri Jun 8 11:25:51 CEST 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 PVE/APIClient/Commands/lxc.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.11.0




More information about the pve-devel mailing list