bomb: handle failing child creation

Issue #3107
This commit is contained in:
Alexander Boettcher 2019-06-13 11:48:17 +02:00 committed by Christian Helmuth
parent cf2c9f8d88
commit bc14a32998
1 changed files with 11 additions and 7 deletions

View File

@ -217,13 +217,17 @@ struct Bomb
Bomb_child::Name const binary_name("bomb");
for (unsigned i = children; i; --i) {
new (heap)
Registered<Bomb_child>(child_registry, env, binary_name,
unique_child_name(child_registry,
binary_name,
generation - 1),
cap_quota, ram_amount,
parent_services, generation - 1);
try {
new (heap)
Registered<Bomb_child>(child_registry, env, binary_name,
unique_child_name(child_registry,
binary_name,
generation - 1),
cap_quota, ram_amount,
parent_services, generation - 1);
} catch (...) {
Genode::error("creation of child ", i, " failed");
}
}
/* master if we have a timer connection */