Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Document ChildProcess exit/close event difference

  • Loading branch information...
isaacs committed Mar 16, 2012
1 parent 7cb0f5f commit 0fb4fb4797e5aaf91dddebc789cb4a9beb543866
Showing with 8 additions and 0 deletions.
  1. +8 −0 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

0 comments on commit 0fb4fb4

Please sign in to comment.
You can’t perform that action at this time.