Changeset 767
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager.c
r716 r767 172 172 p[1] = covlines; 173 173 174 ftruncate(fd, 0); 174 if (ftruncate(fd, 0) != 0) { 175 goto bailout; 176 } 175 177 lseek(fd, 0, SEEK_SET); 176 write(fd, (char *) buf, size); 178 if (write(fd, (char *) buf, size) != size) { 179 goto bailout; 180 } 177 181 178 182 bailout: -
trunk/mmap.c
r558 r767 187 187 } 188 188 } 189 ftruncate(fd, size); 189 190 if (ftruncate(fd, size) != 0) { 191 perror(shm->name); 192 errstr = "Failed to ftruncate the file"; 193 goto err; 194 } 190 195 #endif 191 196 -
trunk/xcache.c
r764 r767 3156 3156 xcache_restore_signal_handler(); 3157 3157 if (xc_coredump_dir && xc_coredump_dir[0]) { 3158 chdir(xc_coredump_dir); 3158 if (chdir(xc_coredump_dir) != 0) { 3159 /* error, but nothing can do about it 3160 * and should'nt print anything which might SEGV again */ 3161 } 3159 3162 } 3160 3163 raise(sig);
Note: See TracChangeset
for help on using the changeset viewer.

