()
| 257 | proc, |
| 258 | port, |
| 259 | async close() { |
| 260 | console.log(`[AppLauncher] 关闭应用 (PID: ${proc.pid})`) |
| 261 | |
| 262 | if (proc.exitCode !== null || proc.signalCode !== null) { |
| 263 | console.log(`[AppLauncher] 应用已退出 (exit code: ${proc.exitCode}, signal: ${proc.signalCode})`) |
| 264 | return |
| 265 | } |
| 266 | |
| 267 | await terminateProcess(proc, { forceKillTimeoutMs }) |
| 268 | }, |
| 269 | } |
| 270 | } |
| 271 |
nothing calls this directly
no test coverage detected