From 3968698af566944257a6673ca30cb1d007a93571 Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Sat, 7 Jan 2023 13:31:47 +0530 Subject: [PATCH] doc: abort controller emits error in child process Fixes: https://github.com/nodejs/node/issues/46036 PR-URL: https://github.com/nodejs/node/pull/46072 Reviewed-By: Antoine du Hamel Reviewed-By: Anna Henningsen --- doc/api/child_process.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index f2f1755f4a9b2e..70345e9472c66e 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1186,9 +1186,10 @@ property is `false`. The `'error'` event is emitted whenever: -1. The process could not be spawned, or -2. The process could not be killed, or -3. Sending a message to the child process failed. +* The process could not be spawned. +* The process could not be killed. +* Sending a message to the child process failed. +* The child process was aborted via the `signal` option. The `'exit'` event may or may not fire after an error has occurred. When listening to both the `'exit'` and `'error'` events, guard