Skip to content

Fixed exit signals hanging in loops #20164

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

Merged
merged 1 commit into from
Jun 3, 2025
Merged

Conversation

39ali
Copy link
Contributor

@39ali 39ali commented Jun 3, 2025

What does this PR do?

fixes 20144 and other issues where process hangs on long/infinite loops

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

@Jarred-Sumner Jarred-Sumner requested a review from heimskr June 3, 2025 11:11
@Jarred-Sumner
Copy link
Collaborator

This looks probably right but there is no test and I want @heimskr to take a look since he has a better understanding of signals than me

@heimskr
Copy link
Member

heimskr commented Jun 3, 2025

Looks good to me. I'm surprised this didn't cause any issues sooner, given that the signal handler is raising the same signal it's handling, which looks like a pretty clear infinite loop. I tested and this fixes the linked issue (#20144). If it clears CI, I'd say this is good to merge.

@Jarred-Sumner Jarred-Sumner merged commit 1931930 into oven-sh:main Jun 3, 2025
59 of 61 checks passed
@heimskr heimskr mentioned this pull request Jun 3, 2025
2 tasks
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.

calling bun cc makes ctrl+c inside infinite loop hang
3 participants