aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot2018-02-23 11:04:34 -0600
committerGerrit Code Review2018-02-23 11:04:34 -0600
commit21b381622d39b3d9ce1eaee674659922ff66fa1b (patch)
tree925cbe149c20711f1bec575e91ca9beed31ac59a
parentbf52b7e00b63397d9c81b7f7ffa7a8b8799edd4a (diff)
parent1cfb36112901eaf44110d8a29355c3116bee4a3a (diff)
downloadplatform-bootable-recovery-21b381622d39b3d9ce1eaee674659922ff66fa1b.tar.gz
platform-bootable-recovery-21b381622d39b3d9ce1eaee674659922ff66fa1b.tar.xz
platform-bootable-recovery-21b381622d39b3d9ce1eaee674659922ff66fa1b.zip
Merge "Replace vfork() with fork()."
-rw-r--r--roots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index e2d5d654..9ff5186c 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -189,7 +189,7 @@ static int exec_cmd(const std::vector<std::string>& args) {
189 argv.push_back(nullptr); 189 argv.push_back(nullptr);
190 190
191 pid_t child; 191 pid_t child;
192 if ((child = vfork()) == 0) { 192 if ((child = fork()) == 0) {
193 execv(argv[0], argv.data()); 193 execv(argv[0], argv.data());
194 _exit(EXIT_FAILURE); 194 _exit(EXIT_FAILURE);
195 } 195 }