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

Michael Smith msmith at xiph.org
Sun Sep 23 03:07:07 PDT 2001



msmith      01/09/23 03:07:07

  Modified:    .        log.c
  Log:
  Open logs in line-buffered mode, so that logging is actually useful.

Revision  Changes    Path
1.2       +1 -0      log/log.c

Index: log.c
===================================================================
RCS file: /usr/local/cvsroot/log/log.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- log.c	2001/09/10 02:32:03	1.1
+++ log.c	2001/09/23 10:07:06	1.2
@@ -84,6 +84,7 @@
                 _release_log_id(log_id);
                 return LOG_ECANTOPEN;
         }
+    setvbuf(loglist[log_id].logfile, NULL, _IOLBF, 0);
 
         return log_id;
 }

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