Changeset 736 for branches/samba-3.5.x/source3/smbd/oplock_linux.c
- Timestamp:
- Nov 12, 2012, 5:38:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/smbd/oplock_linux.c
r414 r736 75 75 int ret; 76 76 77 /* First set the signal handler. */ 78 if (linux_set_lease_sighandler(fd) == -1) { 79 return -1; 80 } 77 81 ret = fcntl(fd, F_SETLEASE, leasetype); 78 82 if (ret == -1 && errno == EACCES) { 79 83 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 } 80 93 ret = fcntl(fd, F_SETLEASE, leasetype); 81 94 }
Note:
See TracChangeset
for help on using the changeset viewer.