diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-02-04 00:40:06 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-04 00:40:06 +0100 |
commit | 95bcbfdd4e96cc89791e8fa907a508ace339c4c1 (patch) | |
tree | 9f4ecbd604bd914dbc0725b3babc7781f5ec8957 /roots.cpp | |
parent | Merge "Avoid to call UI functions in child process" (diff) | |
parent | Replace _exit(-1) with _exit(EXIT_FAILURE). (diff) | |
download | android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.gz android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.bz2 android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.lz android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.xz android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.tar.zst android_bootable_recovery-95bcbfdd4e96cc89791e8fa907a508ace339c4c1.zip |
Diffstat (limited to '')
-rw-r--r-- | roots.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |