diff options
author | Jeremy Allison <jra@samba.org> | 2002-04-19 03:05:38 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-04-19 03:05:38 +0000 |
commit | c7ff521bab838c070931f2b0ece4be3371fbcdbf (patch) | |
tree | 9ac128f837b6a0ef9024b602bba4febffeb5f167 /source/lib/util_file.c | |
parent | 8096032663690eafb6bb8b4f405d6231389d4f80 (diff) | |
download | samba-c7ff521bab838c070931f2b0ece4be3371fbcdbf.tar.gz samba-c7ff521bab838c070931f2b0ece4be3371fbcdbf.tar.xz samba-c7ff521bab838c070931f2b0ece4be3371fbcdbf.zip |
Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write
for transfer_file.
Jeremy.
Diffstat (limited to 'source/lib/util_file.c')
-rw-r--r-- | source/lib/util_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/util_file.c b/source/lib/util_file.c index e80267f84b5..fd3aeb99d9e 100644 --- a/source/lib/util_file.c +++ b/source/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); |