镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 1f00870

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 7a45a46 commit 1f00870

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)