Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

withFramedSink(): Receive interrupts on the stderr thread #9687

Merged
merged 2 commits into from Jan 4, 2024

Conversation

edolstra
Copy link
Member

@edolstra edolstra commented Jan 3, 2024

Motivation

Otherwise Nix deadlocks when Ctrl-C is received in withFramedSink(): the parent thread will wait forever for the stderr thread to shut down.

Fixes the hang reported in #7245 (comment).

Context

Priorities and Process

Add 馃憤 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Otherwise Nix deadlocks when Ctrl-C is received in withFramedSink():
the parent thread will wait forever for the stderr thread to shut
down.

Fixes the hang reported in NixOS#7245 (comment).
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Jan 3, 2024
Shouldn't hurt to do this. In particular, this should speed up
shutting down the PathSubstitutionGoal thread if it's copying from a
remote store.
@edolstra edolstra merged commit 965cfe9 into NixOS:master Jan 4, 2024
8 checks passed
@edolstra edolstra added the backport 2.19-maintenance Automatically creates a PR against the branch label Jan 4, 2024
@edolstra edolstra deleted the withFramedSink-ctrl-c-hang branch January 4, 2024 16:06
Copy link

github-actions bot commented Jan 4, 2024

Successfully created backport PR for 2.19-maintenance:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.19-maintenance Automatically creates a PR against the branch store Issues and pull requests concerning the Nix store
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

1 participant