🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Fix ctrl-c on pager - #6187

Merged
aryairani merged 7 commits into
trunkfrom
cp/fix-pager-procs
Mar 20, 2026
Merged

Fix ctrl-c on pager#6187
aryairani merged 7 commits into
trunkfrom
cp/fix-pager-procs

Conversation

@ChrisPenner

Copy link
Copy Markdown
Member

Overview

Discovered that we fail to clean up broken stdin/stdout handles if the user ctrl-c's a pager process; causing issues like this

Implementation approach and notes

Use withCreateProcess instead, which cleans up after exceptions/interrupts.
Did the same for FZF calls just in case :)

Test coverage

Tested ctrl-c on pagers manually, trunk always gets broken, this is fixed.

@ChrisPenner
ChrisPenner requested a review from a team as a code owner March 16, 2026 22:18

@kubukoz kubukoz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It helps!

@aryairani

Copy link
Copy Markdown
Contributor

lol what!

@ChrisPenner

Copy link
Copy Markdown
Member Author

@aryairani Okay I've got it passing without cheating this time :P

@aryairani

Copy link
Copy Markdown
Contributor

I thought mine should have matched too

@aryairani
aryairani added this pull request to the merge queue Mar 20, 2026
Merged via the queue into trunk with commit b91a6a0 Mar 20, 2026
5 checks passed
@aryairani
aryairani deleted the cp/fix-pager-procs branch March 20, 2026 15:43
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.

3 participants