]> git.proxmox.com Git - pve-client.git/commitdiff
enter: on exit, switch back to blocking mode
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Jun 2018 05:46:26 +0000 (07:46 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Jun 2018 05:46:26 +0000 (07:46 +0200)
Else later shell commands will fail!

PVE/APIClient/Commands/lxc.pm

index 9da6a1f2e16bd1642be3c1f189edcfeeb2e598a0..23f33b2a68ee3a7285218b17a341c9749b5e3c2d 100644 (file)
@@ -149,6 +149,9 @@ my $client_exit = sub {
 
     }
 
 
     }
 
+    # switch back to blocking mode (else later shell commands will fail).
+    STDIN->blocking(0);
+
     #
     # Reset the terminal parameters.
     #
     #
     # Reset the terminal parameters.
     #