git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write
[samba.git]
/
source3
/
lib
/
util_file.c
diff --git
a/source3/lib/util_file.c
b/source3/lib/util_file.c
index e80267f84b5536fd2ebbcc2411308948398f4ed4..fd3aeb99d9e75c764585865db24cf9e4bd76d84e 100644
(file)
--- a/
source3/lib/util_file.c
+++ b/
source3/lib/util_file.c
@@
-51,6
+51,7
@@
BOOL do_file_lock(int fd, int waitsecs, int type)
lock.l_pid = 0;
alarm(waitsecs);
+ /* Note we must *NOT* use sys_fcntl here ! JRA */
ret = fcntl(fd, SMB_F_SETLKW, &lock);
alarm(0);
CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);