Make stdout unbuffered, so that if stderr==stdout, lines match up.
authorDavid Schleef <ds@schleef.org>
Sun, 15 Jul 2001 22:47:58 +0000 (22:47 +0000)
committerDavid Schleef <ds@schleef.org>
Sun, 15 Jul 2001 22:47:58 +0000 (22:47 +0000)
testing/main.c

index 039bfc13f8d9ccb9f144f9ff19a6191fe2accc8b..1494acfcac63f2df056f50ffdc355d7b7c613cd2 100644 (file)
@@ -79,6 +79,8 @@ int main(int argc, char *argv[])
        int c;
        int i;
 
+       setvbuf(stdout,NULL,_IONBF,0);
+
        while (1) {
                c = getopt(argc, argv, "f:rs:t:v");
                if (c == -1)