Skip to content

Commit

Permalink
child_process: document kill() return value
Browse files Browse the repository at this point in the history
This commit documents the return value from subprocess.kill().

PR-URL: nodejs#30669
Refs: nodejs#30668
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
cjihrig committed Nov 29, 2019
1 parent 4871779 commit 84a25eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 84a25eb

Please sign in to comment.