Skip to content

termstatus: flush before reading password from terminal#5554

Merged
MichaelEischer merged 3 commits into
restic:masterfrom
MichaelEischer:termstatus-flush
Oct 12, 2025
Merged

termstatus: flush before reading password from terminal#5554
MichaelEischer merged 3 commits into
restic:masterfrom
MichaelEischer:termstatus-flush

Conversation

@MichaelEischer

Copy link
Copy Markdown
Member

What does this PR change? What problem does it solve?

Fix the output race condition between printing open repository and requesting the password from the user. termstatus now flushes the output before showing the password prompt.

Was the change previously discussed in an issue or on the forum?

Fixes #5477

Checklist

  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I'm done! This pull request is ready for review.

@MichaelEischer MichaelEischer left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@MichaelEischer MichaelEischer merged commit 536a2f3 into restic:master Oct 12, 2025
22 of 24 checks passed
@MichaelEischer MichaelEischer deleted the termstatus-flush branch October 12, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

restic hangs before the password prompt / trying to get the password

1 participant