Changeset 80
- Timestamp:
- 2006-06-16T02:56:58+02:00 (7 years ago)
- File:
-
- 1 edited
-
branches/1.0/mmap.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/mmap.c
r61 r80 200 200 shm->ptr_ro = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); 201 201 #endif 202 if (shm->ptr_ro == XCACHE_MAP_FAILED) { 203 shm->ptr_ro = NULL; 204 } 202 205 romem = shm->ptr_ro; 203 206 204 207 /* {{{ check if ptr_ro works */ 205 208 do { 206 if (shm->ptr_ro == XCACHE_MAP_FAILED|| shm->ptr_ro == shm->ptr) {209 if (shm->ptr_ro == NULL || shm->ptr_ro == shm->ptr) { 207 210 break; 208 211 } … … 224 227 } 225 228 else { 226 if (shm->ptr_ro != XCACHE_MAP_FAILED) {229 if (shm->ptr_ro) { 227 230 munmap(shm->ptr_ro, size); 228 231 }
Note: See TracChangeset
for help on using the changeset viewer.

