From 91b7843aeb542d6ef3fbc6386a71177a23aea593 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/14632 Backport-Reviewed-By: Refael Ackermann Backport-Reviewed-By: Anna Henningsen 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 beb4e37a6d8156..fef0153b289c11 100755 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -991,6 +991,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