aboutsummaryrefslogtreecommitdiff
path: root/docs/src/guide/processes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/guide/processes.rst')
-rw-r--r--docs/src/guide/processes.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/src/guide/processes.rst b/docs/src/guide/processes.rst
index c1278f17..99d65c40 100644
--- a/docs/src/guide/processes.rst
+++ b/docs/src/guide/processes.rst
@@ -53,6 +53,8 @@ ID of the child process.
The exit callback will be invoked with the *exit status* and the type of *signal*
which caused the exit.
+Note that it is important **not** to call ``uv_close`` before the exit callback.
+
.. rubric:: spawn/main.c
.. literalinclude:: ../../code/spawn/main.c
:language: c
@@ -126,7 +128,8 @@ of ``uv_kill`` is::
For processes started using libuv, you may use ``uv_process_kill`` instead,
which accepts the ``uv_process_t`` watcher as the first argument, rather than
-the pid. In this case, **remember to call** ``uv_close`` on the watcher.
+the pid. In this case, **remember to call** ``uv_close`` on the watcher _after_
+the exit callback has been called.
Signals
-------