Changeset 1139 for trunk/src/ct
- Timestamp:
- 04/02/09 16:45:12 (3 years ago)
- File:
-
- 1 edited
-
trunk/src/ct/status.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ct/status.c
r1047 r1139 210 210 { 211 211 int fd, retries = 10; 212 int ret = -1; 212 213 char status_lock_path[PATH_MAX]; 213 214 char status_temp_path[PATH_MAX]; … … 225 226 while (retries--) { 226 227 if (link(status_temp_path, status_lock_path) >= 0) { 227 close(fd); 228 unlink(status_lock_path); 229 return 0; 228 ret = 0; 229 break; 230 230 } 231 231 } 232 232 233 233 close(fd); 234 unlink(status_ lock_path);235 return -1;234 unlink(status_temp_path); 235 return ret; 236 236 } 237 237
Note: See TracChangeset
for help on using the changeset viewer.
