1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

LibCore: Make all processes opt out of InspectorServer by default

This functionality, while neat, isn't really something you need enabled
all the time. Let's make it opt-in instead. Pass MakeInspectable::Yes
to the Core::EventLoop constructor if you want your program to become
inspectable.
This commit is contained in:
Andreas Kling 2021-05-22 23:26:51 +02:00
parent 76a07b31e4
commit c9e849a968
4 changed files with 4 additions and 5 deletions

View file

@ -27,7 +27,7 @@ int main(int argc, char** argv)
pid_t pid = 0;
args_parser.add_positional_argument(pid, "PID", "pid");
args_parser.parse(argc, argv);
Core::EventLoop loop(Core::EventLoop::MakeInspectable::No);
Core::EventLoop loop;
Core::DirIterator iterator(String::formatted("/proc/{}/stacks", pid), Core::DirIterator::SkipDots);
if (iterator.has_error()) {