From 8da0b1439964fec8560e0ca03515dc26e8bfd8f5 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 --- 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 0f022eb9482710..8f2ac384f707d6 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`