isolationtester: Ensure stderr is unbuffered, too
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 20 Dec 2013 01:09:30 +0000 (22:09 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 20 Dec 2013 01:09:30 +0000 (22:09 -0300)
src/test/isolation/isolationtester.c

index 8dc0f66637b42d2f7921eb3a7dbb530d958300bb..e936c01532f9848c39e37a85c5be43215be91d4f 100644 (file)
@@ -99,8 +99,12 @@ main(int argc, char **argv)
        }
    }
 
-   /* make stdout unbuffered to match stderr */
+   /*
+    * Make stdout unbuffered to match stderr; and ensure stderr is unbuffered
+    * too, which it should already be everywhere except sometimes in Windows.
+    */
    setbuf(stdout, NULL);
+   setbuf(stderr, NULL);
 
    /*
     * If the user supplies a non-option parameter on the command line, use it