[xiph-cvs] cvs commit: snatch libsnatch.c
Monty
xiphmont at xiph.org
Sun Nov 11 15:13:53 PST 2001
xiphmont 01/11/11 15:13:53
Modified: . libsnatch.c
Log:
Deal with Linux 2.2 2GB file limit
Revision Changes Path
1.21 +6 -1 snatch/libsnatch.c
Index: libsnatch.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/libsnatch.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- libsnatch.c 2001/11/11 22:27:03 1.20
+++ libsnatch.c 2001/11/11 23:13:52 1.21
@@ -130,8 +130,13 @@
if(ret<0){
if(errno==EAGAIN)
ret=0;
- else
+ else{
+ fprintf(stderr,"**ERROR: Write error on capture file!\n"
+ " : %s\n",strerror(errno));
+ CloseOutputFile(); /* if the error is the 2GB limit on Linux 2.2,
+ this will result in a new file getting opened */
return(ret);
+ }
}
buf+=ret;
n-=ret;
--- >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