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

Karl Heyes karl at xiph.org
Mon Nov 17 15:53:38 PST 2003



karl        03/11/17 18:53:38

  Modified:    .        log.c
  Log:
  patch from mike, unlock logger on failure case.

Revision  Changes    Path
1.14      +5 -1      log/log.c

Index: log.c
===================================================================
RCS file: /usr/local/cvsroot/log/log.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- log.c	11 Jul 2003 23:36:49 -0000	1.13
+++ log.c	17 Nov 2003 23:53:37 -0000	1.14
@@ -242,7 +242,11 @@
 
     _lock_logger();
 
-    if (loglist[log_id].in_use == 0) return;
+    if (loglist[log_id].in_use == 0)
+    {
+        _unlock_logger();
+        return;
+    }
 
     loglist[log_id].in_use = 0;
     loglist[log_id].level = 2;

<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