mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
InspectorServer: Add is_inspectable
IPC
This commit is contained in:
parent
ee38f5241d
commit
00c8b74ab4
3 changed files with 11 additions and 0 deletions
|
@ -81,4 +81,13 @@ Messages::InspectorServer::IdentifyResponse ClientConnection::identify(pid_t pid
|
|||
return response;
|
||||
}
|
||||
|
||||
Messages::InspectorServer::IsInspectableResponse ClientConnection::is_inspectable(pid_t pid)
|
||||
{
|
||||
auto process = InspectableProcess::from_pid(pid);
|
||||
if (!process)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue