summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2018-02-23 18:24:51 +0100
committerandroid-build-merger <android-build-merger@google.com>2018-02-23 18:24:51 +0100
commit44f2cb2d677d1014d179ce482c01545001a21c79 (patch)
tree925cbe149c20711f1bec575e91ca9beed31ac59a
parentMerge "Set LOCAL_SDK_VERSION where possible." (diff)
parentMerge "Replace vfork() with fork()." (diff)
downloadandroid_bootable_recovery-44f2cb2d677d1014d179ce482c01545001a21c79.tar
android_bootable_recovery-44f2cb2d677d1014d179ce482c01545001a21c79.tar.gz
android_bootable_recovery-44f2cb2d677d1014d179ce482c01545001a21c79.tar.bz2
android_bootable_recovery-44f2cb2d677d1014d179ce482c01545001a21c79.tar.lz
android_bootable_recovery-44f2cb2d677d1014d179ce482c01545001a21c79.tar.xz
android_bootable_recovery-44f2cb2d677d1014d179ce482c01545001a21c79.tar.zst
android_bootable_recovery-44f2cb2d677d1014d179ce482c01545001a21c79.zip
-rw-r--r--roots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index e2d5d6543..9ff5186c1 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -189,7 +189,7 @@ static int exec_cmd(const std::vector<std::string>& args) {
argv.push_back(nullptr);
pid_t child;
- if ((child = vfork()) == 0) {
+ if ((child = fork()) == 0) {
execv(argv[0], argv.data());
_exit(EXIT_FAILURE);
}