From: Roy Marples Date: Sat, 5 Sep 2020 15:13:36 +0000 (+0100) Subject: logerr: Ensure that the fd err log is line buffered X-Git-Tag: v9.2.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005992334a549a6895d387db9422d9180fd76814;p=thirdparty%2Fdhcpcd.git logerr: Ensure that the fd err log is line buffered --- diff --git a/src/logerr.c b/src/logerr.c index a2d46017..872033b6 100644 --- a/src/logerr.c +++ b/src/logerr.c @@ -390,6 +390,7 @@ logseterrfd(int fd) return 0; } ctx->log_err = fdopen(fd, "a"); + setlinebuf(ctx->log_err); return ctx->log_err == NULL ? -1 : 0; }