mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
init: forward RAM/cap quota session errors
This patch supplements init's service-forwarding mechanism to propagate the insufficient RAM/cap quota conditions from the server to the client. Without it, the client's session request stays pending infinitely.
This commit is contained in:
parent
44977e3519
commit
72f2ea349d
@ -145,6 +145,12 @@ void Init::Server::session_ready(Session_state &session)
|
||||
|
||||
if (session.phase == Session_state::SERVICE_DENIED)
|
||||
_close_session(session, Parent::SERVICE_DENIED);
|
||||
|
||||
if (session.phase == Session_state::INSUFFICIENT_RAM_QUOTA)
|
||||
_close_session(session, Parent::INSUFFICIENT_RAM_QUOTA);
|
||||
|
||||
if (session.phase == Session_state::INSUFFICIENT_CAP_QUOTA)
|
||||
_close_session(session, Parent::INSUFFICIENT_CAP_QUOTA);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user