diff options
author | Elliott Hughes <enh@google.com> | 2019-10-30 19:39:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-10-30 19:39:36 +0000 |
commit | 5279bc29133cdf83d0c15edff5fa703c09de487c (patch) | |
tree | a239d815591c9536ec8e2fb3c73486e4747903e8 | |
parent | 0cd171a09fec566abc3b0647173db19567e22ce9 (diff) | |
parent | 697f2e69ade69d737e8518fb4db0aab5c719c351 (diff) | |
download | extras-5279bc29133cdf83d0c15edff5fa703c09de487c.tar.gz |
Merge "simpleperf: just use _Exit directly."
-rw-r--r-- | simpleperf/command.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/simpleperf/command.cpp b/simpleperf/command.cpp index d751d610..e937e19b 100644 --- a/simpleperf/command.cpp +++ b/simpleperf/command.cpp @@ -24,7 +24,6 @@ #include <android-base/logging.h> #include <android-base/parsedouble.h> #include <android-base/parseint.h> -#include <android-base/quick_exit.h> #include "utils.h" @@ -177,9 +176,9 @@ bool RunSimpleperfCmd(int argc, char** argv) { bool result = command->Run(args); LOG(DEBUG) << "command '" << command_name << "' " << (result ? "finished successfully" : "failed"); - // Quick exit to avoid cost freeing memory and closing files. + // Quick exit to avoid the cost of freeing memory and closing files. fflush(stdout); fflush(stderr); - android::base::quick_exit(result ? 0 : 1); + _Exit(result ? 0 : 1); return result; } |