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’ll 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

Commits on Jan 3, 2024

  1. withFramedSink(): Receive interrupts on the stderr thread

    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).
    edolstra committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    24e7048 View commit details
    Browse the repository at this point in the history
  2. Make some more threads receive interrupts

    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 committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    295a2ff View commit details
    Browse the repository at this point in the history