Skip to content

Commit ec48ec2

Browse files
dr-jsTrott
andauthored
update: doc/api/child_process.md
Co-authored-by: Rich Trott <rtrott@gmail.com>
1 parent 3d9e2a5 commit ec48ec2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/child_process.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,11 +1253,11 @@ does not indicate that the child process has been terminated.
12531253
added: v0.1.90
12541254
-->
12551255

1256-
* {integer}
1256+
* {integer|undefined}
12571257

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

12621262
```js
12631263
const { spawn } = require('child_process');

0 commit comments

Comments
 (0)