Skip to content

backup: prevent hang using --stdin-from-command if upload fails#21829

Merged
MichaelEischer merged 1 commit into
restic:masterfrom
MichaelEischer:fix-command-hang
May 31, 2026
Merged

backup: prevent hang using --stdin-from-command if upload fails#21829
MichaelEischer merged 1 commit into
restic:masterfrom
MichaelEischer:fix-command-hang

Conversation

@MichaelEischer

Copy link
Copy Markdown
Member

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

When using --stdin-from-command, the backup command could hang until
manually cancelled if the backup stopped before all subprocess output was
consumed, for example after a failed upload to the repository. This has been
fixed.

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

Fixes #5683

Checklist

  • I have added tests for all code changes, see writing tests
  • [ ] 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 ce24640 into restic:master May 31, 2026
12 checks passed
@MichaelEischer MichaelEischer deleted the fix-command-hang branch May 31, 2026 13:27
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 on "Access Denied"

1 participant