From e9688651f3e1a7a2a48d53ed428a7c08f5604078 Mon Sep 17 00:00:00 2001 From: Harshitha KP Date: Mon, 13 Jan 2020 08:15:50 -0500 Subject: [PATCH 1/4] doc: document missing properties in child_process fixes:https://github.com/nodejs/node/issues/27206 --- 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..3bcd90be9c2428 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} + +`subprocess.exitcode` property indicates exit code of the child process. +If child process is still running, the field will be null. + ### `subprocess.kill([signal])`