| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent be28376 commit bb8db84
1 file 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'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments