Skip to content

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

Closed
@brandones

Description

@brandones
  • Version: v6.9.5
  • Platform: Linux 1a7889358561 4.8.6-x86_64-linode78 deps: update openssl to 1.0.1j #1 SMP Tue Nov 1 14:51:21 EDT 2016 x86_64 Linux
  • Subsystem: child_process

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