diff --git a/doc/api/child_process.md b/doc/api/child_process.md index f707c2fe24a07a..8e2b9a45a19aee 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1055,6 +1055,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])`