Skip to content

Commit

Permalink
Fixed some syntax issues
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored Nov 25, 2016
1 parent 64de236 commit 020f1b7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions components/process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,15 @@ are done doing other stuff::
process is completed.

.. note::
If a `Response` is sent **before** what `Process` is running had a chance to complete,

If a ``Response`` is sent **before** what ``Process`` is running had a chance to complete,
the server process will be killed (depending on your OS). It means that your task
will be stopped right away.
Running an asynchronous process is not the same than running a processing surviving yourselves.
will be stopped right away. Running an asynchronous process is not the same than running
a processing surviving yourselves.

If you want your process to survive the request/response cycle, you could take
advantage of the `kernel.terminate` event, and run your command **synchronuously**
inside this event. Be aware that `kernel.terminate` is called only if you run `PHP-FPM`.
advantage of the ``kernel.terminate`` event, and run your command **synchronuously**
inside this event. Be aware that ``kernel.terminate`` is called only if you run ``PHP-FPM``.

:method:`Symfony\\Component\\Process\\Process::wait` takes one optional argument:
a callback that is called repeatedly whilst the process is still running, passing
Expand Down

0 comments on commit 020f1b7

Please sign in to comment.