We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d9e2a5 commit ec48ec2Copy full SHA for ec48ec2
doc/api/child_process.md
@@ -1253,11 +1253,11 @@ does not indicate that the child process has been terminated.
1253
added: v0.1.90
1254
-->
1255
1256
-* {integer}
+* {integer|undefined}
1257
1258
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.
+fails to spawn due to errors, then
+the value is `undefined` and `error` is emitted.
1261
1262
```js
1263
const { spawn } = require('child_process');
0 commit comments