mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 18:06:50 +00:00
base: close PD session last when destructing child
This patch moves the destruction of the child's PD session after the closing of all other sessions because the PD session's role as resource container might still be needed for orderly reverting the session quotas when closing the other remaining sessions. Issue #4917
This commit is contained in:
parent
734fc252e8
commit
0d5571a820
@ -889,7 +889,6 @@ void Child::close_all_sessions()
|
||||
_binary.close();
|
||||
if (_linker.constructed())
|
||||
_linker->close();
|
||||
_pd.close();
|
||||
|
||||
/*
|
||||
* Remove statically created env sessions from the child's ID space.
|
||||
@ -915,6 +914,8 @@ void Child::close_all_sessions()
|
||||
|
||||
while (_id_space.apply_any<Session_state>(close_fn));
|
||||
|
||||
_pd.close();
|
||||
|
||||
if (!KERNEL_SUPPORTS_EAGER_CHILD_DESTRUCTION)
|
||||
_cpu._connection.destruct();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user