Show
Ignore:
Timestamp:
11/08/09 06:49:48 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1257662988 +0000
git-parent:

[f0555be1474aedabc7e5fefccaadb1bb838098b5]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1257662988 +0000
Message:

make the logging API private and add locking for jlog so that in-flight reopens are safe, refs #215

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_livestream_listener.c

    r4a83807 r5bb306c  
    9797static int 
    9898noit_livestream_logio_write(noit_log_stream_t ls, const void *buf, size_t len) { 
    99   noit_livestream_closure_t *jcl = ls->op_ctx
     99  noit_livestream_closure_t *jcl
    100100  struct log_entry *le; 
     101 
     102  jcl = noit_log_stream_get_ctx(ls); 
    101103  if(!jcl) return 0; 
    102104 
     
    121123static int 
    122124noit_livestream_logio_close(noit_log_stream_t ls) { 
    123   noit_livestream_closure_t *jcl = ls->op_ctx; 
     125  noit_livestream_closure_t *jcl; 
     126  jcl = noit_log_stream_get_ctx(ls); 
    124127  if(jcl) noit_livestream_closure_free(jcl); 
    125   ls->op_ctx = NULL
     128  noit_log_stream_set_ctx(ls, NULL)
    126129  return 0; 
    127130}