Skip to content

Commit

Permalink
Merge pull request #655 from lluiscampos/MEN-7876-enable-tty-echo-always
Browse files Browse the repository at this point in the history
MEN-7876: Restore tty echo also when cancelling the context
  • Loading branch information
lluiscampos authored Dec 19, 2024
2 parents 3426688 + d6cc3ba commit c97fe6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/util/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func EchoSigHandler(
select {
case <-ctx.Done():
errChan <- nil
_ = unix.IoctlSetTermios(int(os.Stdin.Fd()), ioctlSetTermios, term)
return
case sig, sigRecved = <-sigChan:
}
Expand Down

0 comments on commit c97fe6e

Please sign in to comment.