genode/repos/os/src
Norman Feske 3bbeacad20 init: preserve final state of exited children
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.
2018-07-03 09:39:30 +02:00
..
app init: preserve final state of exited children 2018-07-03 09:39:30 +02:00
drivers platform_drv: use Expanding_reporter for pci report 2018-06-29 10:44:56 +02:00
init init: preserve final state of exited children 2018-07-03 09:39:30 +02:00
lib net: get rid of unused mac_from_string method 2018-05-30 13:36:36 +02:00
server nic_router: verbose_packet_drop attribute 2018-06-29 10:44:59 +02:00
test os: improve robustness of init_loop test 2018-06-29 10:44:57 +02:00