mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
root/component: log error on Out_of_memory
Servers should account and handle this condition locally.
This commit is contained in:
parent
d1df1dbd87
commit
92978933c7
@ -155,7 +155,10 @@ class Genode::Root_component : public Rpc_object<Typed_root<SESSION_TYPE> >,
|
||||
|
||||
SESSION_TYPE *s = 0;
|
||||
try { s = _create_session(adjusted_args, affinity); }
|
||||
catch (Allocator::Out_of_memory) { throw Root::Unavailable(); }
|
||||
catch (Allocator::Out_of_memory) {
|
||||
error("out of memory for session creation, '", args, "'");
|
||||
throw Root::Unavailable();
|
||||
}
|
||||
|
||||
_ep->manage(s);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user