diff options
author | isaacs <i@izs.me> | 2012-03-16 04:09:47 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-16 04:23:39 +0400 |
commit | 0fb4fb4797e5aaf91dddebc789cb4a9beb543866 (patch) | |
tree | ef72c50218c2797d8a99e66753991dff3f867ab2 /doc | |
parent | 7cb0f5f84a2541578df8e62fcbe098108b0b8f43 (diff) |
Document ChildProcess exit/close event difference
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/child_process.markdown | 8 |
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 |