tMake stdout unbuffered as early as possible - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3e57417100ed71ae4b63f9be8d1dbd6cd2328f90
 (DIR) parent e1aa1132ef821c2068b7ec7cc20936b63611e051
 (HTM) Author: sin <sin@2f30.org>
       Date:   Fri, 26 Sep 2014 16:57:58 +0100
       
       Make stdout unbuffered as early as possible
       
       Diffstat:
         M ratox.c                             |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -1376,6 +1376,8 @@ main(int argc, char *argv[])
                        usage();
                } ARGEND;
        
       +        setbuf(stdout, NULL);
       +
                signal(SIGHUP, initshutdown);
                signal(SIGINT, initshutdown);
                signal(SIGQUIT, initshutdown);
       t@@ -1383,8 +1385,6 @@ main(int argc, char *argv[])
                signal(SIGTERM, initshutdown);
                signal(SIGPIPE, SIG_IGN);
        
       -        setbuf(stdout, NULL);
       -
                printrat();
                toxinit();
                localinit();