diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-06-23 16:54:00 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-06-23 16:54:00 +0000 |
commit | 852af3074a568a03719d74b9262ee986c7356687 (patch) | |
tree | 663e3d10b329907832f1ad49f58af2babdd178f5 /usr.sbin/ipmon/ipmon.c | |
parent | 0860cf4fa98efc94ba4665bc67690e8b61832d2e (diff) |
only flush log if not using syslog
Diffstat (limited to 'usr.sbin/ipmon/ipmon.c')
-rw-r--r-- | usr.sbin/ipmon/ipmon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ipmon/ipmon.c b/usr.sbin/ipmon/ipmon.c index eff7c03202e..595c0406e40 100644 --- a/usr.sbin/ipmon/ipmon.c +++ b/usr.sbin/ipmon/ipmon.c @@ -41,7 +41,7 @@ #include <ctype.h> #if !defined(lint) && defined(LIBC_SCCS) -static char rcsid[] = "$Id: ipmon.c,v 1.8 1997/06/09 09:52:33 niklas Exp $"; +static char rcsid[] = "$Id: ipmon.c,v 1.9 1997/06/23 16:53:59 kstailey Exp $"; #endif #include "ip_fil_compat.h" @@ -487,7 +487,8 @@ int blen; dumphex(log, buf, sizeof(struct ipl_ci)); if (opts & OPT_HEXBODY) dumphex(log, ip, lp->plen + lp->hlen); - fflush(log); + if (!(opts & OPT_SYSLOG)) + fflush(log); } int main(argc, argv) |