efreetd - cache generators - dont unlink then rename - fix
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 12 Apr 2015 13:18:48 +0000 (22:18 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 13 Apr 2015 00:15:43 +0000 (09:15 +0900)
commit6b493430df51eb7b89910c86bec6497a2c6eea53
treea04b29e23e0494b66d4c1bb3cddcd2ae63854c8a
parentcd2b3c228dab0bc89ca84e414db6ee6c70b75533
efreetd - cache generators - dont unlink then rename - fix

if you unlink then rename, there is a gap between the unlink and
rename - no file is there. the point of the rename is to be atomic.
either old file OR new file. nothing in between. this fixes that race.
src/bin/efreet/efreet_desktop_cache_create.c