Skip to content

fix: deliver utilityProcess output written just before the child exits (45-x-y) - #54335

Merged
dsanders11 merged 1 commit into
45-x-yfrom
bp/45-x-y/utility-process-exit-output-54262
Sep 25, 2026
Merged

dsanders11 merged 1 commit into
45-x-yfrom
bp/45-x-y/utility-process-exit-output-54262

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Backport of #54262

See that PR for details.

Notes: Fixed utilityProcess dropping stdout/stderr output that the child wrote immediately before exiting.

#54262)

fix: deliver utilityProcess output that was still in the pipe when it exited

When the child exited, utilityProcess removed every listener from the
stdout/stderr streams it hands out, so output the child wrote just before
exiting (still in the pipe, or read but not yet emitted) never reached
'data' listeners. Leave the streams alone and let them end once the pipe
has been drained; only end a stream that never got connected. child.stdout
and child.stderr still read as null after 'exit', as documented.

The stdout/stderr property specs and the electron/lol import spec read
whatever had arrived by 'exit' and so failed whenever the last chunk came
late; they now wait for the expected output.

(cherry picked from commit d847824)
@MarshallOfSound MarshallOfSound added backport This is a backport PR semver/patch backwards-compatible bug fixes 45-x-y labels Sep 24, 2026
@MarshallOfSound MarshallOfSound self-assigned this Sep 24, 2026
@dsanders11
dsanders11 enabled auto-merge (squash) September 25, 2026 00:35
@dsanders11
dsanders11 merged commit 0eea12c into 45-x-y Sep 25, 2026
89 checks passed
@dsanders11
dsanders11 deleted the bp/45-x-y/utility-process-exit-output-54262 branch September 25, 2026 00:58
@release-clerk

release-clerk Bot commented Sep 25, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed utilityProcess dropping stdout/stderr output that the child wrote immediately before exiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants