mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
Follow-up for: "Merge libc_vfs plugin into libc"
This patch avoids the construction of the Genode::Config object in Noux processes. The construction of this object would populate the Noux process with additional capabilities, which cannot be handled by 'fork()'.
This commit is contained in:
parent
42cce8668b
commit
1f9890d635
@ -164,7 +164,8 @@ class Libc_file_system_factory : public Vfs::File_system_factory
|
||||
|
||||
namespace Libc {
|
||||
|
||||
static Genode::Xml_node config()
|
||||
Genode::Xml_node config() __attribute__((weak));
|
||||
Genode::Xml_node config()
|
||||
{
|
||||
return Genode::config()->xml_node().sub_node("libc");
|
||||
}
|
||||
|
@ -68,9 +68,10 @@ enum { verbose_signals = false };
|
||||
namespace Libc {
|
||||
|
||||
/*
|
||||
* Override the weak function interface of the VFS plugin as Noux programs
|
||||
* do not obtain a VFS configuration via Genode's config mechansim.
|
||||
* Override the weak function interface of the libc and VFS plugin as Noux
|
||||
* programs do not obtain such configuration via Genode's config mechanism.
|
||||
*/
|
||||
Genode::Xml_node config() { return Xml_node("<libc/>"); }
|
||||
Genode::Xml_node vfs_config() { return Xml_node("<vfs/>"); }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user