Commit 10514a6
committed
minor #57514 Double check if pcntl function exists (Toflar)
This PR was merged into the 6.4 branch.
Discussion
----------
Double check if pcntl function exists
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
8000
I have a system where we use the `kernel.terminate` event to trigger `messenger:consume` in case there's no real worker available. Which means there might be the case that when building the container on cli, `pcntl_signal_dispatch` exists but in the web process it of course doesn't.
Super edge-case but these 3 lines would save me from implementing some logic to unregister this listener myself and I don't see why it would hurt anybody else.
Commits
-------
765eceb Double check if pcntl function existsFile tree
1 file changed
+4
-0
lines changed- src/Symfony/Component/Messenger/EventListener
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
0 commit comments