svn commit: samba r13501 - in trunk/source/smbd: .
jra at samba.org
jra at samba.org
Wed Feb 15 01:09:00 GMT 2006
Author: jra
Date: 2006-02-15 01:08:59 +0000 (Wed, 15 Feb 2006)
New Revision: 13501
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13501
Log:
Janitor for jpeach :-).
Jeremy.
Modified:
trunk/source/smbd/oplock_irix.c
Changeset:
Modified: trunk/source/smbd/oplock_irix.c
===================================================================
--- trunk/source/smbd/oplock_irix.c 2006-02-15 01:05:06 UTC (rev 13500)
+++ trunk/source/smbd/oplock_irix.c 2006-02-15 01:08:59 UTC (rev 13501)
@@ -94,7 +94,7 @@
files_struct *fsp;
/* Ensure we only get one call per select fd set. */
- FD_CLR(fds, oplock_pipe_read);
+ FD_CLR(oplock_pipe_read, fds);
/*
* Read one byte of zero to clear the
@@ -220,22 +220,18 @@
return False;
if (fds) {
- return FD_ISSET(oplock_pipe_read,fds);
+ return FD_ISSET(oplock_pipe_read, fds);
}
- FD_ZERO(&myfds);
- maxfd = setup_oplock_select_set(&myfds);
- /* Only do the select if we have something to select *on*. */
- if (maxfd == 0) {
- return False;
- }
-
/* Do a zero-time select. We just need to find out if there
* are any outstanding messages. We use sys_select_intr as
* we need to ignore any signals. */
+ FD_ZERO(&myfds);
+ FD_SET(oplock_pipe_read, &myfds);
+
to = timeval_set(0, 0);
- selrtn = sys_select_intr(maxfd+1,&myfds,NULL,NULL,&to);
+ selrtn = sys_select_intr(oplock_pipe_read+1,&myfds,NULL,NULL,&to);
return (selrtn == 1) ? True : False;
}
More information about the samba-cvs
mailing list