Ignore:
Timestamp:
Nov 12, 2012, 5:38:52 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/smbd/oplock_linux.c

    r414 r736  
    7575        int ret;
    7676
     77        /* First set the signal handler. */
     78        if (linux_set_lease_sighandler(fd) == -1) {
     79                return -1;
     80        }
    7781        ret = fcntl(fd, F_SETLEASE, leasetype);
    7882        if (ret == -1 && errno == EACCES) {
    7983                set_effective_capability(LEASE_CAPABILITY);
     84                /*
     85                 * Bug 8974 - work around Linux kernel bug
     86                 * https://bugzilla.kernel.org/show_bug.cgi?id=43336.
     87                 * "fcntl(F_SETLEASE) resets signal number when
     88                 *  called multiple times"
     89                 */
     90                if (linux_set_lease_sighandler(fd) == -1) {
     91                        return -1;
     92                }
    8093                ret = fcntl(fd, F_SETLEASE, leasetype);
    8194        }
Note: See TracChangeset for help on using the changeset viewer.