setup line buffering for debug messages
authorAndrew Tridgell <tridge@samba.org>
Mon, 15 Dec 1997 17:46:58 +0000 (17:46 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 15 Dec 1997 17:46:58 +0000 (17:46 +0000)
main.c

diff --git a/main.c b/main.c
index 09e0ef3..246a6ac 100644 (file)
--- a/main.c
+++ b/main.c
@@ -732,6 +732,9 @@ int main(int argc,char *argv[])
 
     setup_protocol(f_out,f_in);
 
+    setlinebuf(FINFO);
+    setlinebuf(FERROR);
+
     if (verbose > 3) 
       fprintf(FERROR,"parent=%d child=%d sender=%d recurse=%d\n",
              (int)getpid(),pid,sender,recurse);