Skip to content

Commit 8337df1

Browse files
committed
fixup! doc: document convertProcessSignalToExitCode usage
1 parent b107877 commit 8337df1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

doc/api/child_process.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,12 +1711,6 @@ When the child process is terminated by a signal, `subprocess.exitCode` will be
17111711
`null`. To get the corresponding POSIX exit code, use
17121712
[`util.convertProcessSignalToExitCode(subprocess.signalCode)`][`util.convertProcessSignalToExitCode()`].
17131713
1714-
**Note:** The `child_process` module does not automatically set `exitCode` when
1715-
a process is terminated by a signal to avoid breaking changes in existing code
1716-
that may depend on `exitCode` being `null` in such cases. The
1717-
[`util.convertProcessSignalToExitCode()`][] utility function is provided to
1718-
allow applications to opt-in to this conversion when needed.
1719-
17201714
### `subprocess.kill([signal])`
17211715
17221716
<!-- YAML

0 commit comments

Comments
 (0)