diff options
author | Yabin Cui <yabinc@google.com> | 2018-02-26 21:32:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-02-26 21:32:55 +0000 |
commit | 8e57dc74b071793296389d0d936f385d0949df76 (patch) | |
tree | 0d42460ab2282b578e38db3f1c4cc02e66b94c6e | |
parent | aa6d306692fe2fba1ad6b76c9293d5834cad7088 (diff) | |
parent | fbd54f751b970d7451ab216eff865b3cceeffdf4 (diff) | |
download | extras-8e57dc74b071793296389d0d936f385d0949df76.tar.gz |
Merge "simpleperf: flush output before quick_exit."android-p-preview-1
-rw-r--r-- | simpleperf/command.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/command.cpp b/simpleperf/command.cpp index 314b9bc8..ee03720b 100644 --- a/simpleperf/command.cpp +++ b/simpleperf/command.cpp @@ -152,6 +152,8 @@ bool RunSimpleperfCmd(int argc, char** argv) { LOG(DEBUG) << "command '" << command_name << "' " << (result ? "finished successfully" : "failed"); // Quick exit to avoid cost freeing memory and closing files. + fflush(stdout); + fflush(stderr); android::base::quick_exit(result ? 0 : 1); return result; } |