# HG changeset patch
# User Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
# Date 1398137955 0
# Node ID 1171c32a637b59b91368f4f43015ba095a07473d
# Parent  d9f5630e900d625642f8d7a23283b91b1b8de699
rvinterf & rvtdump: do setlinebuf() on the log file before emitting
the header line, to avoid getting this line twice when forking for -b

diff -r d9f5630e900d -r 1171c32a637b rvinterf/lowlevel/rvifmain.c
--- a/rvinterf/lowlevel/rvifmain.c	Mon Apr 21 02:14:34 2014 +0000
+++ b/rvinterf/lowlevel/rvifmain.c	Tue Apr 22 03:39:15 2014 +0000
@@ -90,8 +90,8 @@
 			perror(logfname);
 			exit(1);
 		}
+		setlinebuf(logF);
 		fprintf(logF, "*** Log of rvinterf session ***\n");
-		setlinebuf(logF);
 	}
 	if (socketpair_fd)
 		create_socketpair_client();
diff -r d9f5630e900d -r 1171c32a637b rvinterf/lowlevel/rvtdump.c
--- a/rvinterf/lowlevel/rvtdump.c	Mon Apr 21 02:14:34 2014 +0000
+++ b/rvinterf/lowlevel/rvtdump.c	Tue Apr 22 03:39:15 2014 +0000
@@ -70,8 +70,8 @@
 			perror(logfname);
 			exit(1);
 		}
+		setlinebuf(logF);
 		fprintf(logF, "*** Log of decoded RVT output ***\n");
-		setlinebuf(logF);
 	}
 	if (background) {
 		c = fork();