rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=94a62239669e82ea4dae62606ee6267795fab883
commit 94a62239669e82ea4dae62606ee6267795fab883 Author: Vyacheslav Reutskiy <[email protected]> Date: Sat Dec 10 10:15:26 2016 +0200 project_manager: lock file should be hiden Change-Id: I72f9c9bec1e5d4a650bffb1ef5e00f45c7218ba0 --- src/bin/project_manager/project_manager2.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/project_manager/project_manager2.c b/src/bin/project_manager/project_manager2.c index 405122d..0c56ffd 100644 --- a/src/bin/project_manager/project_manager2.c +++ b/src/bin/project_manager/project_manager2.c @@ -40,6 +40,8 @@ #define FLAGS ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_READ_LINE_BUFFERED | \ ECORE_EXE_PIPE_ERROR | ECORE_EXE_PIPE_ERROR_LINE_BUFFERED +#define LOCK_FILE ".project.lock" + static Eet_Compression compess_level = EET_COMPRESSION_HI; static PM_Project_Result last_error = PM_PROJECT_LAST; @@ -418,7 +420,7 @@ _project_lock(Project *project) pid = getpid(); dir = ecore_file_dir_get(project->pro_path); - snprintf(path, sizeof(path), "%s/project.lock", dir); + snprintf(path, sizeof(path), "%s/"LOCK_FILE, dir); free(dir); project->fd_lock = open(path, O_RDWR | O_CREAT, S_IWUSR); if (!project->fd_lock) @@ -462,7 +464,7 @@ _project_unlock(Project *project) dir = ecore_file_dir_get(project->pro_path); - snprintf(path, sizeof(path), "%s/project.lock", dir); + snprintf(path, sizeof(path), "%s/"LOCK_FILE, dir); free(dir); #ifndef _WIN32 @@ -497,7 +499,7 @@ _project_trylock(const char *pro_path) assert(path != NULL); dir = ecore_file_dir_get(pro_path); - snprintf(path, sizeof(path), "%s/project.lock", dir); + snprintf(path, sizeof(path), "%s/"LOCK_FILE, dir); free(dir); if (!ecore_file_exists(path)) return true; --
