diff options
author | brian <brian@FreeBSD.org> | 1997-11-11 12:26:34 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-11 12:26:34 +0000 |
commit | 474d294d46696245d3ace21106015186dfde8a3e (patch) | |
tree | ad013ae6d121ab898814484fd1819ec86d210ba0 /usr.sbin/ppp | |
parent | 089628688403af330d7effbe60380b3c63d92788 (diff) | |
download | FreeBSD-src-474d294d46696245d3ace21106015186dfde8a3e.zip FreeBSD-src-474d294d46696245d3ace21106015186dfde8a3e.tar.gz |
Flush the output stream when doing local logging.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c index b88483b..4afa158 100644 --- a/usr.sbin/ppp/log.c +++ b/usr.sbin/ppp/log.c @@ -1,5 +1,5 @@ /* - * $Id: log.c,v 1.19 1997/11/09 06:22:42 brian Exp $ + * $Id: log.c,v 1.20 1997/11/09 14:18:41 brian Exp $ */ #include <sys/param.h> @@ -153,6 +153,7 @@ LogPrintf(int lev, char *fmt,...) else snprintf(nfmt, sizeof nfmt, "%s: %s", LogName(lev), fmt); vfprintf(VarTerm, nfmt, ap); + fflush(VarTerm); } if ((LogIsKept(lev) & LOG_KEPT_SYSLOG) && (lev != LogWARN || !VarTerm)) { |