-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Console] Fix signal handlers not being cleared after command termination #62335
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
[Console] Fix signal handlers not being cleared after command termination #62335
Conversation
|
Hey! Thanks for your PR. You are targeting branch "7.3" but it seems your PR description refers to branch " Cheers! Carsonbot |
3924c80 to
b88619d
Compare
nicolas-grekas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase/retarget for 6.4 since that's a bugfix that applies there.
src/Symfony/Component/Console/SignalRegistry/SignalRegistry.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Console/SignalRegistry/SignalRegistry.php
Outdated
Show resolved
Hide resolved
b88619d to
2fd421b
Compare
2fd421b to
559e878
Compare
559e878 to
6731fff
Compare
|
Thank you @yoeunes. |
This PR fixes a bug where signal handlers would leak in long-running processes (e.g., Scheduler). When the same command was run multiple times, handlers would accumulate, causing a single OS signal to be handled repeatedly.