summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_shm.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-06-12 13:45:17 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-06-14 16:38:18 +0900
commit07ef0fdd93d0c1fd0f0cb7c5638d6cba5dc96466 (patch)
tree2bc077266032fd90ac0fe6623d1555fc918e564c /src/bin/evas/evas_cserve2_shm.c
parent82584a85fb9bd843a2fff671846846505f510ab6 (diff)
evas/cserve2: Add UID to shm file path
+ Improve debug for corner case (never happened)
Diffstat (limited to 'src/bin/evas/evas_cserve2_shm.c')
-rw-r--r--src/bin/evas/evas_cserve2_shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/evas/evas_cserve2_shm.c b/src/bin/evas/evas_cserve2_shm.c
index 5e60138b42..99b7f25066 100644
--- a/src/bin/evas/evas_cserve2_shm.c
+++ b/src/bin/evas/evas_cserve2_shm.c
@@ -68,7 +68,7 @@ cserve2_shm_request(size_t size)
68 } 68 }
69 69
70 do { 70 do {
71 snprintf(shmname, sizeof(shmname), "/evas-shm-img-%d", id++); 71 snprintf(shmname, sizeof(shmname), "/evas-shm-img-%x-%d", (int)getuid(), id++);
72 fd = shm_open(shmname, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); 72 fd = shm_open(shmname, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
73 if (fd == -1 && errno != EEXIST) 73 if (fd == -1 && errno != EEXIST)
74 { 74 {