Merge "Dup the correct fd for qemu pipe."

This commit is contained in:
Erwin Jansen 2019-12-04 17:15:20 +00:00 committed by Gerrit Code Review
commit 10fdfeb7b8

View file

@ -865,7 +865,7 @@ int Logcat::Run(int argc, char** argv) {
}
}
// close output and error channels, replace with console
dup2(fd, STDOUT_FILENO);
dup2(fd, output_fd_.get());
dup2(fd, STDERR_FILENO);
close(fd);
}