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

Update source to 3.0.27a

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  
    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
  • branches/samba-3.0/source/tdb/common/tdb_private.h

    r22 r105  
    3636#include "system/shmem.h"
    3737#include "system/select.h"
     38#include "system/wait.h"
    3839#include "tdb.h"
    3940
     
    177178        int page_size;
    178179        int max_dead_records;
     180        volatile sig_atomic_t *interrupt_sig_ptr;
    179181#ifdef __OS2__
    180182        HMTX    hGlobalLock;
Note: See TracChangeset for help on using the changeset viewer.