From: Dietmar Maurer Date: Wed, 6 Jun 2018 05:46:26 +0000 (+0200) Subject: enter: on exit, switch back to blocking mode X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=commitdiff_plain;h=3226300c1bdd86a31d5efd7b81a4b02ed543d02e;ds=sidebyside enter: on exit, switch back to blocking mode Else later shell commands will fail! --- diff --git a/PVE/APIClient/Commands/lxc.pm b/PVE/APIClient/Commands/lxc.pm index 9da6a1f..23f33b2 100644 --- a/PVE/APIClient/Commands/lxc.pm +++ b/PVE/APIClient/Commands/lxc.pm @@ -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. #