[xiph-cvs] cvs commit: timing timing.c

Jack Moffitt jack at xiph.org
Fri Oct 19 22:05:20 PDT 2001



jack        01/10/19 22:05:20

  Modified:    .        timing.c
  Log:
  select first argument should be 0 when we use it for sleeping.

Revision  Changes    Path
1.3       +6 -1      timing/timing.c

Index: timing.c
===================================================================
RCS file: /usr/local/cvsroot/timing/timing.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- timing.c	2001/10/20 05:03:24	1.2
+++ timing.c	2001/10/20 05:05:19	1.3
@@ -37,5 +37,10 @@
         sleeper.tv_sec = 0;
         sleeper.tv_usec = sleeptime * 1000;
 
-	select(1, NULL, NULL, NULL, &sleeper);
+	/* NOTE:
+	 * This should be 0 for the first argument.  The linux manpage
+	 * says so.  The solaris manpage also says this is a legal
+	 * value.  If you think differerntly, please provide references.
+	 */
+	select(0, NULL, NULL, NULL, &sleeper);
 }

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list