Skip to content

Commit

Permalink
do not shut down for exit codes > 128 other than 137 & 143
Browse files Browse the repository at this point in the history
  • Loading branch information
jeysal committed Mar 30, 2019
1 parent e9ea5f1 commit a730535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jest-worker/src/workers/ChildProcessWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default class ChildProcessWorker implements WorkerInterface {
private _onExit(exitCode: number) {
if (
exitCode !== 0 &&
exitCode <= 128 // importantly, do not reinitialize for 137 (SIGKILL) or 143 (SIGTERM)
exitCode !== 137 && // SIGKILL
exitCode !== 143 // SIGTERM
) {
this.initialize();

Expand Down

0 comments on commit a730535

Please sign in to comment.