(meta: StoredAppLogProcessMeta)
| 54 | } |
| 55 | |
| 56 | function shouldTerminateStoredProcess(meta: StoredAppLogProcessMeta): boolean { |
| 57 | const currentStartTime = readProcessStartTime(meta.pid); |
| 58 | if (!currentStartTime) return false; |
| 59 | if (meta.startTime && currentStartTime !== meta.startTime) return false; |
| 60 | const currentCommand = readProcessCommand(meta.pid); |
| 61 | if (!currentCommand || !isManagedAppLogCommand(currentCommand)) return false; |
| 62 | if (meta.command && currentCommand !== meta.command) return false; |
| 63 | return true; |
| 64 | } |
| 65 | |
| 66 | export function readStoredAppLogProcessMeta( |
| 67 | pidPath: string | undefined, |
no test coverage detected