Skip to content

WIP child-process: watch pipe peer close event#62353

Open
Tseian wants to merge 1 commit intonodejs:mainfrom
Tseian:main
Open

WIP child-process: watch pipe peer close event#62353
Tseian wants to merge 1 commit intonodejs:mainfrom
Tseian:main

Conversation

@Tseian
Copy link
Contributor

@Tseian Tseian commented Mar 20, 2026

Issue

#25131

Description

Watch pipe peer close(EOF/HUP) event. Once the event is detected, a JS callback is triggered to execute, which in turn triggers a method to destroy the socket. Eventually child_process.stdin.on('close') will be triggered.

Before

child_process.stdin.on('close') will not be triggered if the readable end of the pipe has been closed.

After

child_process.stdin.on('close') will be triggered if the readable end of the pipe has been closed.

Changes

Test

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Mar 20, 2026
@Tseian Tseian changed the title child-process: watch pipe peer close event WIP child-process: watch pipe peer close event Mar 20, 2026
@Tseian Tseian force-pushed the main branch 2 times, most recently from 56d85e6 to 071fa18 Compare March 21, 2026 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants