Skip to content

Commit b259724

Browse files
authored
Fix unhandled ERR_IPC_CHANNEL_CLOSED and a deadlock
The detailed description is at #11143.
1 parent 78af379 commit b259724

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/jest-worker/src/workers/ChildProcessWorker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export default class ChildProcessWorker implements WorkerInterface {
205205
private _onExit(exitCode: number) {
206206
if (
207207
exitCode !== 0 &&
208+
exitCode !== null &&
208209
exitCode !== SIGTERM_EXIT_CODE &&
209210
exitCode !== SIGKILL_EXIT_CODE
210211
) {
@@ -236,7 +237,7 @@ export default class ChildProcessWorker implements WorkerInterface {
236237

237238
this._request = request;
238239
this._retries = 0;
239-
this._child.send(request);
240+
this._child.send(request, () => {});
240241
}
241242

242243
waitForExit(): Promise<void> {

0 commit comments

Comments
 (0)