From 244983a6ab0f028ba08aefdd58d13d0efb7e2085 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 3 Aug 2017 11:13:43 -0700 Subject: [PATCH] doc: add entry for subprocess.killed property Backport-PR-URL: https://github.com/nodejs/node/pull/14635 PR-URL: https://github.com/nodejs/node/pull/14578 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Refael Ackermann --- doc/api/child_process.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 2730f403771b83..8189b04b60819b 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -854,6 +854,17 @@ setTimeout(() => { }, 2000); ``` +### subprocess.killed + + +* {boolean} Set to `true` after `subprocess.kill()` is used to successfully + terminate the child process. + +The `subprocess.killed` property indicates whether the child process was +successfully terminated using `subprocess.kill()`. + ### subprocess.pid