File tree 1 file changed +5
-3
lines changed
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
991
991
* ` code ` {number} The exit code if the child exited on its own.
992
992
* ` signal ` {string} The signal by which the child process was terminated.
993
993
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.
997
999
998
1000
``` js
999
1001
const { spawn } = require (' child_process' );
You can’t perform that action at this time.
0 commit comments