mirror of
https://github.com/RGBCube/serenity
synced 2025-10-17 17:32:06 +00:00
Shell: Avoid recreating the event loop before exec()
This stops the local socket creation spam.
This commit is contained in:
parent
3c41487db7
commit
0141f7e7fd
3 changed files with 28 additions and 15 deletions
|
@ -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()); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue