diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 3683c85f0..be8a8b2f4 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -107,7 +107,7 @@ pid_t spawn_shell(const char* shell, StringView cmdline, execparams.push_back(param.c_str()); execparams.push_back(nullptr); - if (pid_t pid = fork()) + if (pid_t pid = vfork()) return pid; setup_child();