From e36ffb72bebae55091304da51837ca204367dc16 Mon Sep 17 00:00:00 2001 From: Linn Dahlgren Date: Wed, 16 Sep 2020 08:43:00 +0200 Subject: [PATCH] doc: change type of child_process.signalCode to string During testing, and interfacing with child_processes, I found that the child_process.signalCode property to be the string representation of the signal, not number. PR-URL: https://github.com/nodejs/node/pull/35223 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott --- doc/api/child_process.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 7ef5c82387346b..3a5f64d622885a 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1389,9 +1389,9 @@ connection to the child. ### `subprocess.signalCode` -* {integer} +* {string|null} -The `subprocess.signalCode` property indicates the signal number received by +The `subprocess.signalCode` property indicates the signal received by the child process if any, else `null`. ### `subprocess.spawnargs`