-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.
Description
On versions 6 and 7 of Node.js
when I started a child process with const n = require('child_process').spawn
if I try,
n.kill(19)
, I get an error saying the signal is not recognized
but 19 is a valid signal
http://stackoverflow.com/questions/9951556/why-number-9-in-kill-9-command-in-unix
I would expect it to work
if I do n.kill('SIGSTOP')
, it seems to work.
Can we (not) use numbers/integers with n.kill()?
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.