[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:26:52 CEST 2018


comments inline

> On June 6, 2018 at 8:15 AM Dietmar Maurer <dietmar at proxmox.com> wrote:
> 
> 
> 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);

applied a fixup:

STDIN->blocking(1);

>      #
>      # Reset the terminal parameters.
>      #
> -- 
> 2.11.0
> 
> 




More information about the pve-devel mailing list