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])`