From a7833c7ce6f70f3659886f4a00711aad1c4669b9 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Fri, 26 Feb 2021 20:09:10 +0530 Subject: [PATCH] doc: refactor signal info in child_process.md * Since exec calls execFile and execFile internally calls spawn with options.signal, the signal parameter has been documented under exec as well. * Refactor the description of signal under all the functions. * Add examples of usage of signal under all the functions and add missing requires in the other examples. PR-URL: https://github.com/nodejs/node/pull/37528 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Antoine du Hamel --- doc/api/child_process.md | 56 +++++++++++++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 6 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 6ebf17c7b29482..4b6215d12b1f89 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -146,6 +146,9 @@ exec('"my script.cmd" a b', (err, stdout, stderr) => {