From f68b261db4e2c5f1b15ef652c676b8bec23fd8a0 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Tue, 27 Oct 2026 09:23:20 +0800 Subject: [PATCH] refactor(process): remove unused worker PID state --- src/process/OwnedWorkerRuntime.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/process/OwnedWorkerRuntime.ts b/src/process/OwnedWorkerRuntime.ts index 4bdb302ead..75f98e61cf 100644 --- a/src/process/OwnedWorkerRuntime.ts +++ b/src/process/OwnedWorkerRuntime.ts @@ -97,7 +97,6 @@ export class OwnedWorkerRuntime { #root: PrivateRuntimeRoot | undefined; #cleanupEpoch: OwnedWorkerRuntimeCleanupEpoch | undefined; #supervisor: ProviderProcessSupervisor | undefined; - #processId: number | null = null; #acquisition: Promise | undefined; #cleanupRetryAttempt: Promise | undefined; #stopAttempt: Promise | undefined; @@ -312,7 +311,6 @@ export class OwnedWorkerRuntime { }); this.#inputFailure = undefined; this.#observeStdin(spawned.process.stdin); - this.#processId = spawned.process.pid ?? null; this.#cleanupEpoch.setRunId(spawned.ownership?.runId ?? spawnOptions.runId); this.#supervisor = new ProviderProcessSupervisor( { @@ -357,7 +355,6 @@ export class OwnedWorkerRuntime { } supervisor.dispose(); this.#supervisor = undefined; - this.#processId = null; this.#cleanupEpoch?.setRunId(undefined); return stopped; }