[pve-devel] applied: [PATCH pve-client 4/4] enter: on exit, switch back to blocking mode
Dietmar Maurer
dietmar at proxmox.com
Wed Jun 6 08:15:53 CEST 2018
Else later shell commands will fail!
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
PVE/APIClient/Commands/lxc.pm | 3 +++
1 file changed, 3 insertions(+)
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.
#
--
2.11.0
More information about the pve-devel
mailing list