From 5d9d343873e569abd9a8460a992ed27c37f18c87 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/14633 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 f2430c3d761d2f..25ee478ad104d2 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -891,6 +891,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