mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-05 09:51:42 +00:00
fs.writeFileSync creates the pid file before its bytes land, so waiting on existence could read it empty and parse NaN. Write to a temp path and rename, so a reader sees either nothing or the complete pid.
57 KiB
57 KiB