1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

Inspector: Check if RemoteProcess is_inspectable

The previous check of looking at `/proc/PID` was not working, it would
always fail even if the process was indeed inspectable.

Commit 70117781 introduced a new IPC for asking InspectorServer whether
or not a given `pid` is actually inspectable.

If a process is not inspectable, the `GUI::ProcessChooser` is
redisplayed if it was previously displayed, otherwise it exits.
This commit is contained in:
Matthew Jones 2021-06-01 10:35:57 -06:00 committed by Andreas Kling
parent 00c8b74ab4
commit fe026fef47
3 changed files with 25 additions and 13 deletions

View file

@ -32,6 +32,8 @@ public:
void set_property(FlatPtr object, const StringView& name, const JsonValue& value);
bool is_inspectable();
Function<void()> on_update;
private: