libc: propagate pipe config to child processes

Issue #3578
This commit is contained in:
Norman Feske 2019-12-03 13:58:47 +01:00 committed by Christian Helmuth
parent 3011dc5876
commit d1cf216384
1 changed files with 4 additions and 1 deletions

View File

@ -151,7 +151,10 @@ void Libc::Child_config::_generate(Xml_generator &xml, Xml_node config)
typedef String<Vfs::MAX_PATH_LEN> Path;
config.with_sub_node("libc", [&] (Xml_node node) {
if (node.has_attribute("rtc"))
xml.attribute("rtc", node.attribute_value("rtc", Path())); });
xml.attribute("rtc", node.attribute_value("rtc", Path()));
if (node.has_attribute("pipe"))
xml.attribute("pipe", node.attribute_value("pipe", Path()));
});
{
char buf[Vfs::MAX_PATH_LEN] { };