File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -991,9 +991,11 @@ added: v0.7.7
991991* ` code ` {number} The exit code if the child exited on its own.
992992* ` signal ` {string} The signal by which the child process was terminated.
993993
994- The ` 'close' ` event is emitted when the stdio streams of a child process have
995- been closed. This is distinct from the [ ` 'exit' ` ] [ ] event, since multiple
996- processes might share the same stdio streams.
994+ The ` 'close' ` event is emitted after a process has ended _ and_ the stdio
995+ streams of a child process have been closed. This is distinct from the
996+ [ ` 'exit' ` ] [ ] event, since multiple processes might share the same stdio
997+ streams. The ` 'close' ` event will always emit after [ ` 'exit' ` ] [ ] was
998+ already emitted, or [ ` 'error' ` ] [ ] if the child failed to spawn.
997999
9981000``` js
9991001const { spawn } = require (' child_process' );
You can’t perform that action at this time.
0 commit comments