comparison rvinterf/lowlevel/rvifmain.c @ 330:1171c32a637b

rvinterf & rvtdump: do setlinebuf() on the log file before emitting the header line, to avoid getting this line twice when forking for -b
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 22 Apr 2014 03:39:15 +0000
parents 4c416868524a
children d527ac304ad5
comparison
equal deleted inserted replaced
329:d9f5630e900d 330:1171c32a637b
88 logF = fopen(logfname, "w"); 88 logF = fopen(logfname, "w");
89 if (!logF) { 89 if (!logF) {
90 perror(logfname); 90 perror(logfname);
91 exit(1); 91 exit(1);
92 } 92 }
93 setlinebuf(logF);
93 fprintf(logF, "*** Log of rvinterf session ***\n"); 94 fprintf(logF, "*** Log of rvinterf session ***\n");
94 setlinebuf(logF);
95 } 95 }
96 if (socketpair_fd) 96 if (socketpair_fd)
97 create_socketpair_client(); 97 create_socketpair_client();
98 else 98 else
99 create_listener_socket(); 99 create_listener_socket();