summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_shm_debug.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-10-08 17:06:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:16 +0900
commit660ad6e4a414c42364ab555f6f77354a97d04610 (patch)
tree0b421772d693328b40a08030a19b0ad765bbaadf /src/bin/evas/evas_cserve2_shm_debug.c
parent6b6e33e262387380af4507e94a123a352ac6ee1c (diff)
evas/cserve2: Add PID to shm filenames
This will help identify new memory pools in case cserve2 restarts and reloads the same glyphs for instance.
Diffstat (limited to '')
-rw-r--r--src/bin/evas/evas_cserve2_shm_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/evas/evas_cserve2_shm_debug.c b/src/bin/evas/evas_cserve2_shm_debug.c
index 12ee29dd55..8535af45cd 100644
--- a/src/bin/evas/evas_cserve2_shm_debug.c
+++ b/src/bin/evas/evas_cserve2_shm_debug.c
@@ -179,7 +179,7 @@ _shm_files_list(const char *folder)
179 const Eina_File_Direct_Info *f_info; 179 const Eina_File_Direct_Info *f_info;
180 char pattern[64]; 180 char pattern[64];
181 181
182 sprintf(pattern, "/evas-shm-%x-", (int) getuid()); 182 sprintf(pattern, "/evas-shm-%05d-", (int) getuid());
183 iter = eina_file_direct_ls(folder); 183 iter = eina_file_direct_ls(folder);
184 EINA_ITERATOR_FOREACH(iter, f_info) 184 EINA_ITERATOR_FOREACH(iter, f_info)
185 { 185 {
@@ -191,7 +191,7 @@ _shm_files_list(const char *folder)
191 lst = eina_list_append(lst, strdup(shmname)); 191 lst = eina_list_append(lst, strdup(shmname));
192 } 192 }
193 else 193 else
194 DBG("cserve2 cleanup: ignoring %s", f_info->path); 194 DBG("cserve2 scan: ignoring %s", f_info->path);
195 } 195 }
196 eina_iterator_free(iter); 196 eina_iterator_free(iter);
197 197