Skip to content

Commit

Permalink
doc: clarify when child process 'spawn' event is *not* emitted
Browse files Browse the repository at this point in the history
Making this clarification in response to a comment on GitHub:
#35288 (comment)

PR-URL: #37833
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
zenflow authored and ruyadorno committed Mar 24, 2021
1 parent 9557dda commit c0a424f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,8 @@ added: v15.1.0
-->

The `'spawn'` event is emitted once the child process has spawned successfully.
If the child process does not spawn successfully, the `'spawn'` event is not
emitted and the `'error'` event is emitted instead.

If emitted, the `'spawn'` event comes before all other events and before any
data is received via `stdout` or `stderr`.
Expand Down

0 comments on commit c0a424f

Please sign in to comment.