(root: string)
| 1063 | }); |
| 1064 | |
| 1065 | function readWriterInfo(root: string): { pid: number; mode: string } | null { |
| 1066 | try { |
| 1067 | const info = JSON.parse(fs.readFileSync(path.join(root, '.codegraph', 'writer.pid'), 'utf8')); |
| 1068 | return typeof info.pid === 'number' && typeof info.mode === 'string' ? info : null; |
| 1069 | } catch { return null; } |
| 1070 | } |
no test coverage detected