From 3299de8743a05a523ce56b0da62fddce41540bcd Mon Sep 17 00:00:00 2001 From: Harshitha KP Date: Mon, 13 Jan 2020 08:15:50 -0500 Subject: [PATCH] doc: document missing properties in child_process Add documentation for subprocess.exitCode, subprocess.signalCode, subprocess.spawnargs, and subprocess.spawnfile. PR-URL: https://github.com/nodejs/node/pull/31342 Fixes: https://github.com/nodejs/node/issues/27206 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott --- doc/api/child_process.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index f9b0ebf1f92a05..5e695a3a510ca2 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1075,6 +1075,13 @@ When the child process is a Node.js instance (e.g. spawned using [`child_process.fork()`][]), the `process.disconnect()` method can be invoked within the child process to close the IPC channel as well. +### `subprocess.exitCode` + +* {integer} + +The `subprocess.exitcode` property indicates the exit code of the child process. +If the child process is still running, the field will be null. + ### `subprocess.kill([signal])`