cli_monitor: ensure blocked children are waked up

When a command was executed, it is necessary to check not only whether the
preservation limit of the ram quota is reached, but also whether new ram quota
is available (e.g.: consequence of the kill command), and children are waiting
for additional resources.
This commit is contained in:
Stefan Kalkowski 2013-10-18 14:31:49 +02:00 committed by Christian Helmuth
parent 15741f73c0
commit e0be6b9ed6
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ class Ram
{
if (_ram.avail() < _preserve)
Genode::Signal_transmitter(_yield_sigh).submit();
/* verify to answer outstanding resource requests too */
if (_ram.avail() > _preserve)
Genode::Signal_transmitter(_resource_avail_sigh).submit();
}
public: