Skip to content

n.kill(19) throws error #9519

Closed
Closed
@ORESoftware

Description

@ORESoftware

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

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions