Return-Path: shep@ginger.lcs.mit.edu 
Received: from ginger.lcs.mit.edu (ginger.lcs.mit.edu [18.26.0.82])
	by meow.febo.com (8.8.5/8.8.5) with SMTP id NAA00618
	for <jra@febo.com>; Sun, 6 Sep 1998 13:56:11 -0400
Received: by ginger.lcs.mit.edu 
	id AA20359; Sun, 6 Sep 98 13:56:09 -0400
Message-Id: <9809061756.AA20359@ginger.lcs.mit.edu>
From: Tim Shepard <shep@lcs.mit.edu>
To: John Ackermann N8UR <jra@febo.com>
Subject: Re: aprsbuf.c.gz.uue 
In-Reply-To: Your message of Sun, 06 Sep 1998 08:09:56 -0400.
             <199809061209.IAA31803@meow.febo.com> 
Date: Sun, 06 Sep 1998 13:56:08 -0400
Sender: shep@ginger.lcs.mit.edu


John,

I just glanced at it again.  Now I realize what I should have done
about flushing the log stdio handle.  The right way to do the fflush()
is to call it once, right before calling select (see below).

			-Tim Shepard
			 shep@lcs.mit.edu
			 shep@alum.mit.edu


--- aprsbuf.c	1998/09/06 05:07:29	1.1
+++ aprsbuf.c	1998/09/06 17:22:44
@@ -181,6 +181,8 @@
     writefds_ready = writefds;
     exceptfds_ready = exceptfds;
 
+    fflush(log);
+
     nready = select(nds, &readfds_ready, &writefds_ready, &exceptfds_ready, &timeout);
     if (nready < 0) pe("select");
     


