apps/speed.c: children should not inherit buffered I/O

PR: 1787
Submitted by: Artur Klauser <aklauser@google.com>
This commit is contained in:
Lutz Jänicke 2008-12-10 08:03:47 +00:00
parent 9d44cd1642
commit d88d941c87

View 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]);