mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
sequence: immediately stop child on exit
The sequence app should immediately stop the child when it called parent().exit(). Otherwise, the child will continue execution which causes a race condition: The child's ld.lib.so will eventually destruct an Attached_rom_dataspace for the config rom. If sequence destructed the corresponding service first, we will get an Ipc_error. genodelabs/genode#4267
This commit is contained in:
parent
e6bd9fd7da
commit
93583cce3b
@ -150,6 +150,7 @@ struct Sequence::Child : Genode::Child_policy
|
||||
void exit(int exit_value) override
|
||||
{
|
||||
_exit_value = exit_value;
|
||||
_child.close_all_sessions();
|
||||
_exit_transmitter.submit();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user