Browse Source
Use POSIX rename atomicity at the `bitcoind` side to create a working
cookie atomically:
- Write `.cookie.tmp`, close file
- Rename `.cookie.tmp` to `.cookie`
This avoids clients reading invalid/partial cookies as in #11129.
Github-Pull: #11131
Rebased-From: 82dd7195e1
0.15
Wladimir J. van der Laan
7 years ago
committed by
MarcoFalke
2 changed files with 16 additions and 7 deletions
Loading…
Reference in new issue