summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/api/child_process.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/child_process.md b/doc/api/child_process.md
index 7a025f94fa..746de9bd2c 100644
--- a/doc/api/child_process.md
+++ b/doc/api/child_process.md
@@ -1061,10 +1061,12 @@ added: v0.1.90
-->
* `signal` {number|string}
+* Returns: {boolean}
The `subprocess.kill()` method sends a signal to the child process. If no
argument is given, the process will be sent the `'SIGTERM'` signal. See
-signal(7) for a list of available signals.
+signal(7) for a list of available signals. This function returns `true` if
+kill(2) succeeds, and `false` otherwise.
```js
const { spawn } = require('child_process');