Skip to content

Commit

Permalink
update: doc/api/child_process.md
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Trott <[email protected]>
  • Loading branch information
dr-js and Trott committed Feb 1, 2021
1 parent 40dd301 commit 61f86f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1253,11 +1253,11 @@ does not indicate that the child process has been terminated.
added: v0.1.90
-->

* {integer}
* {integer|undefined}

Returns the process identifier (PID) of the child process. If the child process
fails to spawn due to errors like command or `cwd` not found (`ENOENT`), then
the value is `undefined` and `error` should emit on next tick.
fails to spawn due to errors, then the value is `undefined` and `error` is
emitted.

```js
const { spawn } = require('child_process');
Expand Down

0 comments on commit 61f86f3

Please sign in to comment.