Skip to content

child_process.spawnSync returns status=0 when signal=SIGKILLΒ #11284

@brandones

Description

@brandones

When the process forked by child_process.spawnSync is send SIGKILL, the returned object has status == 0 while signal == SIGKILL. This differs from the behavior of child_process.spawn, for which the Exit event handler is called with status == null and signal == SIGKILL, per the documentation.

Reproduction at https://github.com/brandones/nodejs-child-process-bug-repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions