lxc enter: set STDOUT to non-blocking mode
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 8 Jun 2018 08:51:22 +0000 (10:51 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 8 Jun 2018 09:42:22 +0000 (11:42 +0200)
PVE/APIClient/Commands/lxc.pm

index 879d7c3..c60017b 100644 (file)
@@ -260,6 +260,7 @@ __PACKAGE__->register_method ({
 
            # And set it to non-blocking so we can every char with IO::Select.
            STDIN->blocking(0);
+           STDOUT->blocking(0);
            $web_socket->blocking(0);
            $read_select->add($web_socket);
            my $input_fh = \*STDIN;