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& args) { argv.push_back(nullptr); pid_t child; - if ((child = vfork()) == 0) { + if ((child = fork()) == 0) { execv(argv[0], argv.data()); _exit(EXIT_FAILURE); }