Shell: Avoid recreating the event loop before exec()

This stops the local socket creation spam.
This commit is contained in:
AnotherTest
2020-12-07 19:37:04 +03:30
committed by Andreas Kling
parent 3c41487db7
commit 0141f7e7fd
3 changed files with 28 additions and 15 deletions

View File

@@ -27,6 +27,7 @@
#include "Shell.h"
#include <AK/LexicalPath.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
#include <LibCore/File.h>
#include <inttypes.h>
#include <signal.h>
@@ -830,6 +831,9 @@ bool Shell::run_builtin(const AST::Command& command, const NonnullRefPtrVector<A
}
}
Core::EventLoop loop;
setup_signals();
#define __ENUMERATE_SHELL_BUILTIN(builtin) \
if (name == #builtin) { \
retval = builtin_##builtin(argv.size() - 1, argv.data()); \