summaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-02-04 00:45:58 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-02-04 00:45:58 +0100
commit80176c68b25c847dec3ec313a440c323a96c66af (patch)
tree9f4ecbd604bd914dbc0725b3babc7781f5ec8957 /roots.cpp
parentMerge "Avoid to call UI functions in child process" (diff)
parentMerge "Replace _exit(-1) with _exit(EXIT_FAILURE)." (diff)
downloadandroid_bootable_recovery-80176c68b25c847dec3ec313a440c323a96c66af.tar
android_bootable_recovery-80176c68b25c847dec3ec313a440c323a96c66af.tar.gz
android_bootable_recovery-80176c68b25c847dec3ec313a440c323a96c66af.tar.bz2
android_bootable_recovery-80176c68b25c847dec3ec313a440c323a96c66af.tar.lz
android_bootable_recovery-80176c68b25c847dec3ec313a440c323a96c66af.tar.xz
android_bootable_recovery-80176c68b25c847dec3ec313a440c323a96c66af.tar.zst
android_bootable_recovery-80176c68b25c847dec3ec313a440c323a96c66af.zip
Diffstat (limited to '')
-rw-r--r--roots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index 376fcbd1b..4a0a4948a 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -163,7 +163,7 @@ static int exec_cmd(const char* path, char* const argv[]) {
pid_t child;
if ((child = vfork()) == 0) {
execv(path, argv);
- _exit(-1);
+ _exit(EXIT_FAILURE);
}
waitpid(child, &status, 0);
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {