(root: string)
| 1124 | }); |
| 1125 | |
| 1126 | function readWriterInfo(root: string): { pid: number; mode: string } | null { |
| 1127 | try { |
| 1128 | const info = JSON.parse(fs.readFileSync(path.join(root, '.codegraph', 'writer.pid'), 'utf8')); |
| 1129 | return typeof info.pid === 'number' && typeof info.mode === 'string' ? info : null; |
| 1130 | } catch { return null; } |
| 1131 | } |
no test coverage detected