* Shared process state management for Swift Package tools. * * Tracks active child processes so they can be individually stopped * or bulk-terminated during server shutdown.
| 6 | */ |
| 7 | |
| 8 | interface TrackedProcess { |
| 9 | kill: (signal?: string) => void; |
| 10 | on: (event: string, callback: () => void) => void; |
| 11 | once?: (event: string, callback: () => void) => void; |
| 12 | removeListener?: (event: string, callback: () => void) => void; |
| 13 | pid?: number; |
| 14 | exitCode?: number | null; |
| 15 | signalCode?: string | null; |
| 16 | killed?: boolean; |
| 17 | } |
| 18 | |
| 19 | export interface ProcessInfo { |
| 20 | process: TrackedProcess; |
nothing calls this directly
no outgoing calls
no test coverage detected