Changeset 751 for trunk/server/source3/smbd/oplock_linux.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/smbd/oplock_linux.c
r745 r751 77 77 int ret; 78 78 79 /* First set the signal handler. */ 80 if (linux_set_lease_sighandler(fd) == -1) { 81 return -1; 82 } 79 83 ret = fcntl(fd, F_SETLEASE, leasetype); 80 84 if (ret == -1 && errno == EACCES) { 81 85 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 } 82 95 ret = fcntl(fd, F_SETLEASE, leasetype); 83 96 }
Note:
See TracChangeset
for help on using the changeset viewer.