Skip to content

Commit afa67db

Browse files
christianaurichzmaduh95
authored andcommitted
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 <christian.aurichzm@gmail.com> PR-URL: #65770 Refs: nodejs/reliability#1650 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 8ef4099 commit afa67db

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/parallel/test-child-process-fork-closed-channel-segfault.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const server = net
7676
// Ignore errors when sending the second handle because the worker
7777
// may already have exited.
7878
if (err && err.code !== 'ERR_IPC_CHANNEL_CLOSED' &&
79+
err.code !== 'EPIPE' &&
7980
err.code !== 'ECONNRESET' &&
8081
err.code !== 'ECONNREFUSED' &&
8182
err.code !== 'EMFILE') {

0 commit comments

Comments
 (0)