From 4b022103a14916de1c3bc539d123273750138915 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:46:42 -0700 Subject: chore: Revert child_process close ordering change (#25781) From https://github.com/denoland/deno/commit/18b89d948dcb849c4dc577478794c3d5fb23b59 May have caused the recent flakiness of parallel/test-child-process-ipc-next-tick.js --- ext/node/polyfills/internal/child_process.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/node/polyfills/internal/child_process.ts b/ext/node/polyfills/internal/child_process.ts index 175119afa..56fc21f35 100644 --- a/ext/node/polyfills/internal/child_process.ts +++ b/ext/node/polyfills/internal/child_process.ts @@ -391,8 +391,8 @@ export class ChildProcess extends EventEmitter { this.emit("exit", exitCode, signalCode); await this.#_waitForChildStreamsToClose(); this.#closePipes(); - nextTick(flushStdio, this); maybeClose(this); + nextTick(flushStdio, this); }); })(); } catch (err) { -- cgit v1.2.3