| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent eee2c33 commit 474fbb5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1065,9 +1065,11 @@ added: v0.7.7 | |||
| 1065 | 1065 | * `code` {number} The exit code if the child exited on its own. | |
| 1066 | 1066 | * `signal` {string} The signal by which the child process was terminated. | |
| 1067 | 1067 | ||
| 1068 | - The `'close'` event is emitted when the stdio streams of a child process have | ||
| 1069 | - been closed. This is distinct from the [`'exit'`][] event, since multiple | ||
| 1070 | - processes might share the same stdio streams. | ||
| 1068 | + The `'close'` event is emitted after a process has ended _and_ the stdio | ||
| 1069 | + streams of a child process have been closed. This is distinct from the | ||
| 1070 | + [`'exit'`][] event, since multiple processes might share the same stdio | ||
| 1071 | + streams. The `'close'` event will always emit after [`'exit'`][] was | ||
| 1072 | + already emitted, or [`'error'`][] if the child failed to spawn. | ||
| 1071 | 1073 | ||
| 1072 | 1074 | ```js | |
| 1073 | 1075 | const { spawn } = require('child_process'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments