Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-03-16 04:09:47 +0400
committerisaacs <i@izs.me>2012-03-16 04:23:39 +0400
commit0fb4fb4797e5aaf91dddebc789cb4a9beb543866 (patch)
treeef72c50218c2797d8a99e66753991dff3f867ab2 /doc
parent7cb0f5f84a2541578df8e62fcbe098108b0b8f43 (diff)
Document ChildProcess exit/close event difference
Diffstat (limited to 'doc')
-rw-r--r--doc/api/child_process.markdown8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/child_process.markdown b/doc/api/child_process.markdown
index 8c86c321cc1..489b072f741 100644
--- a/doc/api/child_process.markdown
+++ b/doc/api/child_process.markdown
@@ -35,8 +35,16 @@ normally, `code` is the final exit code of the process, otherwise `null`. If
the process terminated due to receipt of a signal, `signal` is the string name
of the signal, otherwise `null`.
+Note that the child process stdio streams might still be open.
+
See `waitpid(2)`.
+### Event: 'close'
+
+This event is emitted when the stdio streams of a child process have all
+terminated. This is distinct from 'exit', since multiple processes
+might share the same stdio streams.
+
### Event: 'disconnect'
This event is emitted after using the `.disconnect()` method in the parent or