Ignore:
Timestamp:
Nov 26, 2007, 9:24:27 AM (18 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.27a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/tdb/common/lock.c

    r71 r105  
    131131#endif
    132132
     133void tdb_setalarm_sigptr(struct tdb_context *tdb, volatile sig_atomic_t *ptr)
     134{
     135        tdb->interrupt_sig_ptr = ptr;
     136}
     137
    133138/* a byte range locking function - return 0 on success
    134139   this functions locks/unlocks 1 byte at the specified offset.
     
    264269        do {
    265270                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                }
    266278        } while (ret == -1 && errno == EINTR);
    267279
Note: See TracChangeset for help on using the changeset viewer.