Browse Source

Remove file log flushing from within the flock to not delay other code waiting on logging

master
ckolivas 11 years ago
parent
commit
c80af8bc56
  1. 1
      src/ckpool.c

1
src/ckpool.c

@ -61,7 +61,6 @@ void logmsg(int loglevel, const char *fmt, ...) {
if (loglevel <= LOG_ERR && errno != 0) if (loglevel <= LOG_ERR && errno != 0)
fprintf(LOGFP, " with errno %d: %s", errno, strerror(errno)); fprintf(LOGFP, " with errno %d: %s", errno, strerror(errno));
fprintf(LOGFP, "\n"); fprintf(LOGFP, "\n");
fflush(LOGFP);
flock(logfd, LOCK_UN); flock(logfd, LOCK_UN);
} }
if (loglevel <= LOG_WARNING) {\ if (loglevel <= LOG_WARNING) {\

Loading…
Cancel
Save