mirror of
https://github.com/samba-team/samba.git
synced 2025-12-23 00:23:53 +03:00
Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write
for transfer_file. Jeremy.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user