mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
Noux: close stdio at exit
Close the stdin, stdout, and stderr I/O channels at child exit. This serves to flush buffers at the I/O resources which might not be written otherwise. Ref #2919
This commit is contained in:
parent
7e7cb15bd1
commit
86ee1b7448
@ -278,8 +278,12 @@ struct Noux::Main
|
||||
_destruct_queue.flush();
|
||||
|
||||
/* let noux exit if the init process exited */
|
||||
if (!init_child)
|
||||
if (!init_child) {
|
||||
_channel_0 = Shared_pointer<Io_channel>();
|
||||
_channel_1 = Shared_pointer<Io_channel>();
|
||||
_channel_2 = Shared_pointer<Io_channel>();
|
||||
_env.parent().exit(exit_value);
|
||||
}
|
||||
}
|
||||
|
||||
struct Kill_broadcaster_impl: Kill_broadcaster
|
||||
|
Loading…
Reference in New Issue
Block a user