summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-10-30 12:55:20 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-10-30 12:55:20 -0700
commita6afa7150f2e95012c1e183ea1708a33159106b9 (patch)
treea239d815591c9536ec8e2fb3c73486e4747903e8
parentd1569c33d3a66a6d5dc12a5e72c5eb25f9f7dabe (diff)
parent5279bc29133cdf83d0c15edff5fa703c09de487c (diff)
downloadextras-a6afa7150f2e95012c1e183ea1708a33159106b9.tar.gz
Merge "simpleperf: just use _Exit directly."
am: 5279bc2913 Change-Id: Ia878014b838ab7bac268d9978a6c6d025679036c
-rw-r--r--simpleperf/command.cpp5
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;
}