apps/speed.c: children should not inherit buffered I/O
authorLutz Jänicke <jaenicke@openssl.org>
Wed, 10 Dec 2008 08:03:47 +0000 (08:03 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Wed, 10 Dec 2008 08:03:47 +0000 (08:03 +0000)
PR: 1787
Submitted by: Artur Klauser <aklauser@google.com>

apps/speed.c

index fed9131467090cf562f1d9fe83f3c5273db9adb7..209c0e64640ce4cbe17e9f5d4e13e9e64765031d 100644 (file)
@@ -2593,6 +2593,8 @@ static int do_multi(int multi)
        for(n=0 ; n < multi ; ++n)
                {
                pipe(fd);
+               fflush(stdout);
+               fflush(stderr);
                if(fork())
                        {
                        close(fd[1]);