Changeset 105 for branches/samba-3.0/source/tdb/common
- Timestamp:
- Nov 26, 2007, 9:24:27 AM (18 years ago)
- Location:
- branches/samba-3.0/source/tdb/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/tdb/common/lock.c
r71 r105 131 131 #endif 132 132 133 void tdb_setalarm_sigptr(struct tdb_context *tdb, volatile sig_atomic_t *ptr) 134 { 135 tdb->interrupt_sig_ptr = ptr; 136 } 137 133 138 /* a byte range locking function - return 0 on success 134 139 this functions locks/unlocks 1 byte at the specified offset. … … 264 269 do { 265 270 ret = fcntl(tdb->fd,lck_type,&fl); 271 272 /* Check for a sigalarm break. */ 273 if (ret == -1 && errno == EINTR && 274 tdb->interrupt_sig_ptr && 275 *tdb->interrupt_sig_ptr) { 276 break; 277 } 266 278 } while (ret == -1 && errno == EINTR); 267 279 -
branches/samba-3.0/source/tdb/common/tdb_private.h
r22 r105 36 36 #include "system/shmem.h" 37 37 #include "system/select.h" 38 #include "system/wait.h" 38 39 #include "tdb.h" 39 40 … … 177 178 int page_size; 178 179 int max_dead_records; 180 volatile sig_atomic_t *interrupt_sig_ptr; 179 181 #ifdef __OS2__ 180 182 HMTX hGlobalLock;
Note:
See TracChangeset
for help on using the changeset viewer.