Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

roberth
Copy link
Contributor

@roberth roberth commented Sep 2, 2024

Specifically, forward errors from packbuilder->progress_cb

This allows the callback to gracefully terminate long-running operations when the application is interrupted.

Interruption could be ^C in the terminal, but this could be any other condition or event, as this is up to the callback function to implement.

My specific motivation for this is to improve the responsiveness of the Nix package manager to interrupts in the terminal, in the context of NixOS/nix#11330, which proposes to write packfiles instead of loose objects for performance.

Specifically, forward errors from packbuilder->progress_cb

This allows the callback to gracefully terminate long-running
operations when the application is interrupted.

Interruption could be ^C in the terminal, but this could be any
other condition or event, as this is up to the callback function
to implement.
@ethomson
Copy link
Member

Helpful fix, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.