Skip to content

Commit abc7db7

Browse files
committed
fix(shell): drop unused spawnProcessGroupLeader export
The shared spawn helper had no callers, so the dead-export gate failed static analysis.
1 parent 80974e5 commit abc7db7

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

‎src/shell/spawn-tree.ts‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
spawn,
3-
type ChildProcess,
4-
type SpawnOptions,
5-
} from "node:child_process";
1+
import type { SpawnOptions } from "node:child_process";
62

73
// One process-group-kill policy for every spawned tool subprocess: the child
84
// is spawned detached so it becomes a group leader, and the kill reaches the
@@ -43,14 +39,3 @@ export function processGroupLeaderSpawnOptions(): Pick<
4339
> {
4440
return { detached: process.platform !== "win32" };
4541
}
46-
47-
export function spawnProcessGroupLeader(
48-
command: string,
49-
args: readonly string[],
50-
options: SpawnOptions = {},
51-
): ChildProcess {
52-
return spawn(command, [...args], {
53-
...processGroupLeaderSpawnOptions(),
54-
...options,
55-
});
56-
}

0 commit comments

Comments
 (0)