diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 6f74038b3c9c90..c38a866db0a42e 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])`