From 6ca23f035c6f28726203c67ba187e6b7da0b0688 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..71bc9f5fa37b04 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) => {