summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-02-04 00:53:26 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-02-04 00:53:26 +0100
commit94720ced1a42fac53ebb4ca028719bd7251dc863 (patch)
treeeb7876bf60c6c00b29aaa30c6679642907b39032 /recovery.cpp
parentMerge "Avoid to call UI functions in child process" am: 0f275ae56e am: 5fa2e576f9 am: 15ab95bb63 (diff)
parentMerge "Replace _exit(-1) with _exit(EXIT_FAILURE)." am: 95bcbfdd4e am: 80176c68b2 (diff)
downloadandroid_bootable_recovery-94720ced1a42fac53ebb4ca028719bd7251dc863.tar
android_bootable_recovery-94720ced1a42fac53ebb4ca028719bd7251dc863.tar.gz
android_bootable_recovery-94720ced1a42fac53ebb4ca028719bd7251dc863.tar.bz2
android_bootable_recovery-94720ced1a42fac53ebb4ca028719bd7251dc863.tar.lz
android_bootable_recovery-94720ced1a42fac53ebb4ca028719bd7251dc863.tar.xz
android_bootable_recovery-94720ced1a42fac53ebb4ca028719bd7251dc863.tar.zst
android_bootable_recovery-94720ced1a42fac53ebb4ca028719bd7251dc863.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 25d3546e3..29d7ab889 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -243,7 +243,7 @@ static void redirect_stdio(const char* filename) {
if (log_fp == nullptr) {
PLOG(ERROR) << "fopen \"" << filename << "\" failed";
close(pipefd[0]);
- _exit(1);
+ _exit(EXIT_FAILURE);
}
FILE* pipe_fp = fdopen(pipefd[0], "r");
@@ -251,7 +251,7 @@ static void redirect_stdio(const char* filename) {
PLOG(ERROR) << "fdopen failed";
check_and_fclose(log_fp, filename);
close(pipefd[0]);
- _exit(1);
+ _exit(EXIT_FAILURE);
}
char* line = nullptr;
@@ -273,7 +273,7 @@ static void redirect_stdio(const char* filename) {
free(line);
check_and_fclose(log_fp, filename);
close(pipefd[0]);
- _exit(1);
+ _exit(EXIT_FAILURE);
} else {
// Redirect stdout/stderr to the logger process.
// Close the unused read end.