(markerPath: string, now: number)
| 177 | } |
| 178 | |
| 179 | async function touchCleanupMarker(markerPath: string, now: number): Promise<void> { |
| 180 | await fs.mkdir(path.dirname(markerPath), { recursive: true, mode: 0o700 }); |
| 181 | await fs.writeFile(markerPath, String(now)); |
| 182 | const markerDate = new Date(now); |
| 183 | await fs.utimes(markerPath, markerDate, markerDate); |
| 184 | } |
| 185 | |
| 186 | function hasLiveHelperPidInName(fileName: string): boolean { |
| 187 | for (const match of fileName.matchAll(HELPER_PID_PATTERN)) { |
no test coverage detected