sculpt: avoid excess quota for sculpt manager

The sculpt manager wrongly paid for the nitpicker session of the fader
out of its own pocket. This patch reduces the quota transfer to the
amount provided the fader.
This commit is contained in:
Norman Feske 2018-06-04 13:50:08 +02:00 committed by Christian Helmuth
parent 5727da0c75
commit 3ec96ab080
2 changed files with 11 additions and 5 deletions

View File

@ -155,7 +155,7 @@
<start name="config_fs_report">
<binary name="fs_report"/>
<resource name="RAM" quantum="1M"/>
<resource name="RAM" quantum="2M"/>
<provides> <service name="Report"/> </provides>
<config> <vfs> <fs/> </vfs> </config>
<route>
@ -166,7 +166,7 @@
<start name="manager" caps="200">
<binary name="sculpt_manager"/>
<resource name="RAM" quantum="16M"/>
<resource name="RAM" quantum="3M"/>
<provides> <service name="Nitpicker"/> </provides>
<config/>
<route>
@ -251,7 +251,7 @@
<start name="log_noux" caps="200">
<binary name="noux"/>
<resource name="RAM" quantum="24M" />
<resource name="RAM" quantum="8M" />
<config>
<fstab>
<tar name="coreutils-minimal.tar" />

View File

@ -92,8 +92,14 @@ struct Nitpicker::Session_component : Rpc_object<Nitpicker::Session>
void mode_sigh(Signal_context_capability sigh) override {
_connection.mode_sigh(sigh); }
void buffer(Framebuffer::Mode mode, bool use_alpha) override {
_connection.buffer(mode, use_alpha); }
void buffer(Framebuffer::Mode mode, bool use_alpha) override
{
/*
* Do not call 'Connection::buffer' to avoid paying session quota
* from our own budget.
*/
_connection.Client::buffer(mode, use_alpha);
}
void focus(Capability<Nitpicker::Session> session) override {
_connection.focus(session); }