From ebc99e0560cb379bd7b60772713e972dbebf153f Mon Sep 17 00:00:00 2001 From: Christian Aurich Date: Sun, 6 Sep 2026 03:34:38 -0300 Subject: [PATCH] test: handle EPIPE in closed channel test The second handle is only sent once the first one is acknowledged, by which time the worker may already have exited, so the write can fail with EPIPE. Observed on AIX in the CI reliability report of 2026-09-04. Signed-off-by: Christian Aurich PR-URL: https://github.com/nodejs/node/pull/65770 Refs: https://github.com/nodejs/reliability/issues/1650 Reviewed-By: Filip Skokan Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat --- test/parallel/test-child-process-fork-closed-channel-segfault.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-child-process-fork-closed-channel-segfault.js b/test/parallel/test-child-process-fork-closed-channel-segfault.js index 73bd118ddce..779e02205e2 100644 --- a/test/parallel/test-child-process-fork-closed-channel-segfault.js +++ b/test/parallel/test-child-process-fork-closed-channel-segfault.js @@ -76,6 +76,7 @@ const server = net // Ignore errors when sending the second handle because the worker // may already have exited. if (err && err.code !== 'ERR_IPC_CHANNEL_CLOSED' && + err.code !== 'EPIPE' && err.code !== 'ECONNRESET' && err.code !== 'ECONNREFUSED' && err.code !== 'EMFILE') {