-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.
Description
- Version: v9.5.0
- Platform: Linux arch 4.14.15-1-ARCH deps: update openssl to 1.0.1j #1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018 x86_64 GNU/Linux
- Subsystem: process
Using process.kill
with signal numbers should work according to the documentation, but I get an ERR_UNKNOWN_SIGNAL error when using numbers instead of strings. For example:
$ node
> process.kill(process.pid, "SIGTERM")
Terminated
$ node
> 15 === require("constants").SIGTERM
true
> process.kill(process.pid, 15)
TypeError [ERR_UNKNOWN_SIGNAL]: Unknown signal: 15
at process.kill (internal/process.js:168:15)
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.