Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Document ChildProcess exit/close event difference
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 16, 2012
1 parent 7cb0f5f commit 0fb4fb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/child_process.markdown
Expand Up @@ -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
Expand Down

0 comments on commit 0fb4fb4

Please sign in to comment.