Skip to content

On Linux cross-env returns exit code 0 when then child command is killed #150

@esistgut

Description

@esistgut
  • cross-env version: 5.1.0
  • node version: 8.7.0
  • npm version: 5.4.2

What you did:
$ ./node_modules/.bin/cross-env TEST=test sleep 10 from first shell
$ killall sleep from second shell
$ echo $? 0 from the first shell

What happened:
cross-env returns with exit code 0.

Problem description:
cross-env should return with exit code 143.
This is problematic if cross-env runs inside npm scripts and the command exits for unexpected reasons (our case is a OOM kill) because the execution continues without reporting errors.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions