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: #35223
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
Linn Dahlgren authored and MylesBorins committed Sep 24, 2020
1 parent b4514d4 commit b9d767c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
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 b9d767c

Please sign in to comment.