Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/smbd/oplock_linux.c

    r745 r751  
    7777        int ret;
    7878
     79        /* First set the signal handler. */
     80        if (linux_set_lease_sighandler(fd) == -1) {
     81                return -1;
     82        }
    7983        ret = fcntl(fd, F_SETLEASE, leasetype);
    8084        if (ret == -1 && errno == EACCES) {
    8185                set_effective_capability(LEASE_CAPABILITY);
     86                /*
     87                 * Bug 8974 - work around Linux kernel bug
     88                 * https://bugzilla.kernel.org/show_bug.cgi?id=43336.
     89                 * "fcntl(F_SETLEASE) resets signal number when
     90                 *  called multiple times"
     91                 */
     92                if (linux_set_lease_sighandler(fd) == -1) {
     93                        return -1;
     94                }
    8295                ret = fcntl(fd, F_SETLEASE, leasetype);
    8396        }
Note: See TracChangeset for help on using the changeset viewer.