You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…s and skip exit (GromNaN)
This PR was merged into the 5.4 branch.
Discussion
----------
[Console] Fix signal handlers called after event listeners and skip exit
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#48205
| License | MIT
| Doc PR | -
Restore registration of signal handlers after the event dispatcher.
https://github.com/symfony/symfony/pull/45333/files#diff-8f1fd83284712ab08cb5d391da70ea0e78719ef08db852596997a4085848a026L1009
Commits
-------
eebfd6e Fix signal handlers called after event listeners and skip exit
Symfony version(s) affected
since 6.1.4 - 6.1.x-dev - 6.2.x-dev
Description
Using
SignalableCommandInterface
to intercept the signalSIGINT
, the process is stopped while it was still running on previous minor versions.How to reproduce
For Symfony World Online 2022, I created a sample command (code) to play with signals.
https://asciinema.org/a/su5VlgGiuRTBqSD4OXqSNn0XP
The command
bin/console app:signal
display a progress bar that change direction whenCtrl+C
is hit.When
symfony/console
is updated to 6.1.4 or newer,Ctrl+C
stops the process.https://asciinema.org/a/537232
Possible Solution
Related merge requests:
Full diff: symfony/console@v6.1.3...v6.1.4
Additional Context
No response
The text was updated successfully, but these errors were encountered: