mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 17:01:07 +00:00
3bbeacad20
This is a follow-up patch of "init: avoid too eager child restart". On each config update of init, init re-applies child-specific configuration changes. In the case of an already exited child, this re-evaluation wrongly marked such a child as abandoned because the child's environment sessions do no longer exist. Abandoning the child, in turn, triggers the destruction and subseqent restart (because the <start> node of the configuration still exists). The latter is bad for two reasons. First, the exit state of the original instance becomes lost. Second, the restart may have unexpected side effects due to sessions created by the new instance. I.e., when resizing a partition in sculpt, init would wrongly restart the gpt-write tool after the tool successfully exited. This collides with a newly started instance of part_blk/resize2fs, which now competes with the second gpt-write instance for the exclusive access of the targeted block device. The patch prevents init from re-applying configurations to exited children. The accompanied test case covers the corner case. |
||
---|---|---|
.. | ||
app | ||
drivers | ||
init | ||
lib | ||
server | ||
test |