From f56a805a0d6163f3d21b1896abd14040ce5a7158 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 80346c8581e338..677f3a5c190554 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) => {