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

apps/speed.c

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