Skip to content

Commit cb1c863

Browse files
committed
Tweaks
1 parent 011181f commit cb1c863

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

components/console/events.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,15 @@ handle signals themselves. To do so, implement the
218218
}
219219
}
220220

221-
It is your responsibility to handle signals that are relevant to you (even
222-
``SIGKILL``, ``SIGTERM``, etc). This allows you to ignore them or do tasks
223-
before terminating the process for example. This behavior is intended, as
224-
it leaves more flexibility to developers to handle each type of signal the
225-
way they want to.
221+
Symfony doesn't handle any signal received by the command (not even ``SIGKILL``,
222+
``SIGTERM``, etc). This behavior is intended, as it gives you the flexibility to
223+
handle all signals e.g. to do some tasks before terminating the command.
226224

227225
.. deprecated:: 6.3
228226

229-
In Symfony versions previous to 6.3, all signals (except from ``SIGUSR1`` and
230-
``SIGUSR2``) would terminate the script by calling ``exit(0)``. From Symfony 6.3,
231-
no more signal is automatically calling ``exit(0)``.
227+
In Symfony versions previous to 6.3, all signals (except ``SIGUSR1`` and
228+
``SIGUSR2``) would terminate the script by calling ``exit(0)``. Starting
229+
from Symfony 6.3, no more signal is automatically calling ``exit(0)``.
232230

233231
.. _`reserved exit codes`: https://www.tldp.org/LDP/abs/html/exitcodes.html
234232
.. _`Signals`: https://en.wikipedia.org/wiki/Signal_(IPC)

0 commit comments

Comments
 (0)