log: Use unlocked variants of stdio functions

This commit uses the unlocked variants of additional stdio functions
pull/5376/head
Jeff Lucovsky 4 years ago committed by Victor Julien
parent 3c91e14352
commit 6cdd87f5ad

@ -209,9 +209,9 @@ static int SCLogFileWriteNoLock(const char *buffer, int buffer_len, LogFileCtx *
}
if (log_ctx->fp) {
clearerr(log_ctx->fp);
SCClearErrUnlocked(log_ctx->fp);
ret = SCFwriteUnlocked(buffer, buffer_len, 1, log_ctx->fp);
fflush(log_ctx->fp);
SCFflushUnlocked(log_ctx->fp);
}
return ret;

Loading…
Cancel
Save