Changeset 924 for trunk/mmap.c
- Timestamp:
- 06/24/2012 08:34:35 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/mmap.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mmap.c
r768 r924 45 45 long diff; 46 46 xc_shmsize_t size; 47 xc_shmsize_t memoffset; 47 48 char *name; 48 int newfile;49 xc_shmsize_t memoffset;50 49 #ifdef ZEND_WIN32 51 50 HANDLE hmap; 52 51 HANDLE hmap_ro; 52 #else 53 int newfile; 53 54 #endif 54 55 }; … … 120 121 121 122 if (shm->name) { 122 #ifdef __CYGWIN__ 123 #ifndef ZEND_WIN32 124 # ifdef __CYGWIN__ 123 125 if (shm->newfile) { 124 126 unlink(shm->name); 125 127 } 128 # endif 126 129 #endif 127 130 free(shm->name); … … 142 145 #else 143 146 # define TMP_PATH "/tmp/XCache" 147 int fd = -1; 144 148 #endif 145 149 xc_shm_t *shm = NULL; 146 int fd = -1;147 150 int ro_ok; 148 151 volatile void *romem; … … 260 263 /* }}} */ 261 264 265 #ifndef ZEND_WIN32 262 266 close(fd); 263 #ifndef __CYGWIN__ 267 268 # ifndef __CYGWIN__ 264 269 if (shm->newfile) { 265 270 unlink(shm->name); 266 271 } 272 # endif 267 273 #endif 268 274 … … 270 276 271 277 err: 278 #ifndef ZEND_WIN32 272 279 if (fd != -1) { 273 280 close(fd); 274 281 } 282 #endif 275 283 if (shm) { 276 284 xc_mmap_destroy(shm);

