From ec48ec262a99dbf9fe83f2b65faff3f3b938c95d Mon Sep 17 00:00:00 2001 From: Dr Date: Mon, 1 Feb 2021 08:38:23 +0800 Subject: [PATCH] update: doc/api/child_process.md Co-authored-by: Rich Trott --- doc/api/child_process.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 7fb174b24ad800..fee426d8d58e9d 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -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');