Skip to content

Commit

Permalink
doc: change type of child_process.signalCode to string
Browse files Browse the repository at this point in the history
During testing, and interfacing with child_processes, I found that the
child_process.signalCode property to be the string representation of
the signal, not number.

PR-URL: nodejs#35223
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Linn Dahlgren authored and joesepi committed Oct 22, 2020
1 parent 7ac5b4e commit 3fcfea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/child_process.md
Expand Up @@ -1389,9 +1389,9 @@ connection to the child.

### `subprocess.signalCode`

* {integer}
* {string|null}

The `subprocess.signalCode` property indicates the signal number received by
The `subprocess.signalCode` property indicates the signal received by
the child process if any, else `null`.

### `subprocess.spawnargs`
Expand Down

0 comments on commit 3fcfea7

Please sign in to comment.