From d4bcb3689dddc5daea365cd3925e030dc9549ec9 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 4 Jan 2021 11:26:51 -0800 Subject: [PATCH] doc: clarify subprocess.stdout/in/err/io properties The various `subprocess.stdwhatever` properties can be null or undefined in certain conditions. Fixes: https://github.com/nodejs/node/issues/33458 Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/36784 Reviewed-By: Luigi Pinca --- doc/api/child_process.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 40172705f517c9..6b092a83018d3c 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1508,6 +1508,9 @@ then this will be `null`. `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will refer to the same value. +The `subprocess.stderr` property can be `null` if the child process could +not be successfully spawned. + ### `subprocess.stdin`