Re: [mpd-devel] State file lost on brutal shutdown, needs atomic writes

2015-08-30 Thread Max Kellermann
On 2015/08/28 19:28, Calimero calimerotek...@free.fr wrote: And with the rename() syscall, we replace the old file atomically with the new one. Look what git master is doing. ___ mpd-devel mailing list mpd-devel@musicpd.org

[mpd-devel] State file lost on brutal shutdown, needs atomic writes

2015-08-29 Thread Calimero
Hello, I've been a happy mpd user for years now. Recently however, I have regularly been losing my playlist when I forgot to close mpd manually before rebooting. The reason behind this is undoubtedly systemd, which TERMs and KILLs mpd quite fast in succession, revealing the race condition. The