forked from enlightenment/efl
parent
c37ca95819
commit
44aea1a452
|
@ -2149,7 +2149,7 @@ efreet_desktop_update_cache_dirs(void *data __UNUSED__)
|
||||||
if (!ecore_file_mkpath(file)) return;
|
if (!ecore_file_mkpath(file)) return;
|
||||||
|
|
||||||
snprintf(file, sizeof(file), "%s/.efreet/lock", efreet_home_dir_get());
|
snprintf(file, sizeof(file), "%s/.efreet/lock", efreet_home_dir_get());
|
||||||
fd = open(file, O_CREAT | O_TRUNC | O_RDONLY, S_IRUSR | S_IWUSR);
|
fd = open(file, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR);
|
||||||
if (fd < 0) return;
|
if (fd < 0) return;
|
||||||
/* TODO: Retry update cache later */
|
/* TODO: Retry update cache later */
|
||||||
if (flock(fd, LOCK_EX | LOCK_NB) < 0) goto error;
|
if (flock(fd, LOCK_EX | LOCK_NB) < 0) goto error;
|
||||||
|
|
Loading…
Reference in New Issue