mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 19:22:29 +00:00
d4427931a2
From https://github.com/jesec/rtorrent/commit/f9a875b633eb083ec82f89ebeae8678ca424e8b2 This commit ensures session files land on the disk in the event of a system crash or power outage. It prevents data corruption of rTorrent session files, which causes torrent client breakage. Optimizations from the initial implementation include 1) Skipping unnecessary file metadata updates during the sync process. 2) Skipping variable initialization since open will assign -1 on failure.