(printOutput: string)
| 324 | }; |
| 325 | |
| 326 | const parseLaunchctlPid = (printOutput: string): number | null => { |
| 327 | const match = printOutput.match(/\bpid\s*=\s*(\d+)/); |
| 328 | if (!match) return null; |
| 329 | const pid = Number.parseInt(match[1], 10); |
| 330 | return Number.isInteger(pid) && pid > 0 ? pid : null; |
| 331 | }; |
| 332 | |
| 333 | const makeLaunchdBackend = (): ServiceBackend => { |
| 334 | const serviceTarget = (uid: number): string => `gui/${uid}/${SERVICE_LABEL}`; |
no outgoing calls
no test coverage detected