summaryrefslogtreecommitdiff
path: root/src/bin/evas/evas_cserve2_shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/evas/evas_cserve2_shm.c')
-rw-r--r--src/bin/evas/evas_cserve2_shm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/evas/evas_cserve2_shm.c b/src/bin/evas/evas_cserve2_shm.c
index d95afc7782..6ccfbcd2a4 100644
--- a/src/bin/evas/evas_cserve2_shm.c
+++ b/src/bin/evas/evas_cserve2_shm.c
@@ -132,7 +132,7 @@ cserve2_shm_segment_request(Shm_Handle *shm, size_t size)
132 if (!segment) return NULL; 132 if (!segment) return NULL;
133 133
134 fd = shm_open(map->name, O_RDWR, S_IRUSR | S_IWUSR); 134 fd = shm_open(map->name, O_RDWR, S_IRUSR | S_IWUSR);
135 if (!fd) 135 if (fd == -1)
136 { 136 {
137 ERR("Could not reopen shm handle: %m"); 137 ERR("Could not reopen shm handle: %m");
138 free(segment); 138 free(segment);
@@ -184,7 +184,7 @@ cserve2_shm_resize(Shm_Handle *shm, size_t newsize)
184 } 184 }
185 185
186 fd = shm_open(shm->mapping->name, O_RDWR, S_IRUSR | S_IWUSR); 186 fd = shm_open(shm->mapping->name, O_RDWR, S_IRUSR | S_IWUSR);
187 if (!fd) 187 if (fd == -1)
188 { 188 {
189 ERR("Could not reopen shm handle: %m"); 189 ERR("Could not reopen shm handle: %m");
190 return NULL; 190 return NULL;