mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18: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:
parent
00c8b74ab4
commit
fe026fef47
3 changed files with 25 additions and 13 deletions
|
@ -88,6 +88,11 @@ void RemoteProcess::set_property(FlatPtr object, const StringView& name, const J
|
|||
m_client->async_set_object_property(m_pid, object, name, value.to_string());
|
||||
}
|
||||
|
||||
bool RemoteProcess::is_inspectable()
|
||||
{
|
||||
return m_client->is_inspectable(m_pid);
|
||||
}
|
||||
|
||||
void RemoteProcess::update()
|
||||
{
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue