Skip to content

Commit

Permalink
lj_auditlog.c: Remove fflush() that seems problematic
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Dec 12, 2017
1 parent 2276cd8 commit 623d45f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/lj_auditlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ int lj_auditlog_open(const char *path)
}
}

static void flush()
{
if (fp != NULL) fflush(fp);
}

/* -- high-level LuaJIT object logging ------------------------------------ */

static void log_GCobj(GCobj *o);
Expand Down Expand Up @@ -182,7 +177,6 @@ void lj_auditlog_trace_stop(jit_State *J, GCtrace *T)
log_event("trace_stop", 2);
str_16("GCtrace"); /* = */ uint_64((uint64_t)T);
str_16("jit_State"); /* = */ uint_64((uint64_t)J);
flush();
}
}

Expand All @@ -193,7 +187,6 @@ void lj_auditlog_trace_abort(jit_State *J, TraceError e)
log_event("trace_abort", 2);
str_16("TraceError"); /* = */ uint_64(e);
str_16("jit_State"); /* = */ uint_64((uint64_t)J);
flush();
}
}

Expand All @@ -203,7 +196,6 @@ void lj_auditlog_new_prototype(GCproto *pt)
log_GCproto(pt);
log_event("new_prototype", 1);
str_16("GCproto"); /* = */ uint_64((uint64_t)pt);;
flush();
}
}

0 comments on commit 623d45f

Please sign in to comment.