From c1ea23c55db1d58f6939ddfb2f9d4e3f4dc13796 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 6882b017ad3e05..5a0f46596395c1 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1498,6 +1498,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`