Skip to content

Mention PCNTL extension installation #19026

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
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion components/console/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ Listeners receive a
It is then dispatched just after the ``ConsoleEvents::ERROR`` event.
The exit code received in this case is the exception code.

.. _console_signal-event:

The ``ConsoleEvents::SIGNAL`` Event
-----------------------------------

Expand Down Expand Up @@ -184,7 +186,8 @@ Listeners receive a
.. tip::

All the available signals (``SIGINT``, ``SIGQUIT``, etc.) are defined as
`constants of the PCNTL PHP extension`_.
`constants of the PCNTL PHP extension`_. The extension has to be installed
for these constants to be available.

If you use the Console component inside a Symfony application, commands can
handle signals themselves. To do so, implement the
Expand Down
6 changes: 6 additions & 0 deletions components/lock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ Lock will be released automatically as soon as one process finishes::
}
// ...

.. note::

In order for the above example to work, the `PCNTL`_ extension must be
installed.

To disable this behavior, set the ``autoRelease`` argument of
``LockFactory::createLock()`` to ``false``. That will make the lock acquired
for 3600 seconds or until ``Lock::release()`` is called::
Expand Down Expand Up @@ -1074,3 +1079,4 @@ are still running.
.. _`ZooKeeper`: https://zookeeper.apache.org/
.. _`readers-writer lock`: https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock
.. _`priority policy`: https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Priority_policies
.. _`PCNTL`: https://www.php.net/manual/book.pcntl.php