[xiph-cvs] cvs commit: ices/src im_oss.c

Michael Smith msmith at xiph.org
Fri Aug 9 06:52:56 PDT 2002



msmith      02/08/09 09:52:56

  Modified:    src      im_oss.c
  Log:
  Fix for possible bug in OSS reader causing incorrect exit.

Revision  Changes    Path
1.7       +2 -2      ices/src/im_oss.c

Index: im_oss.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/im_oss.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- im_oss.c	3 Aug 2002 15:05:38 -0000	1.6
+++ im_oss.c	9 Aug 2002 13:52:56 -0000	1.7
@@ -1,7 +1,7 @@
 /* im_oss.c
  * - Raw PCM input from OSS devices
  *
- * $Id: im_oss.c,v 1.6 2002/08/03 15:05:38 msmith Exp $
+ * $Id: im_oss.c,v 1.7 2002/08/09 13:52:56 msmith Exp $
  *
  * Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
  *
@@ -128,7 +128,7 @@
                 s->newtrack = 0;
         }
 
-	if(result == -1 && errno == EINTR)
+	if(result == -1 && (errno == EINTR || errno == ERESTART))
         {
                 return 0; /* Non-fatal error */
         }

<p><p>--- >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