mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-05 10:13:15 +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 {
|
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");
|
return Genode::config()->xml_node().sub_node("libc");
|
||||||
}
|
}
|
||||||
|
@ -68,10 +68,11 @@ enum { verbose_signals = false };
|
|||||||
namespace Libc {
|
namespace Libc {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Override the weak function interface of the VFS plugin as Noux programs
|
* Override the weak function interface of the libc and VFS plugin as Noux
|
||||||
* do not obtain a VFS configuration via Genode's config mechansim.
|
* programs do not obtain such configuration via Genode's config mechanism.
|
||||||
*/
|
*/
|
||||||
Genode::Xml_node vfs_config() { return Xml_node("<vfs/>"); }
|
Genode::Xml_node config() { return Xml_node("<libc/>"); }
|
||||||
|
Genode::Xml_node vfs_config() { return Xml_node("<vfs/>"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user