noux: exit with child

Issue: #1408
This commit is contained in:
Emery Hemingway 2015-05-24 16:36:17 +02:00 committed by Christian Helmuth
parent 992fbb495d
commit 46858cf2f6
3 changed files with 9 additions and 2 deletions

View File

@ -56,6 +56,6 @@ if {[have_spec x86_64]} {
append qemu_args " -m 300 "
}
run_genode_until "child /bin/ls exited with exit value 0.*\n" 30
run_genode_until {child "noux" exited with exit value 0.*\n} 30
exec rm bin/coreutils.tar

View File

@ -388,6 +388,9 @@ namespace Noux {
_sig_rec->dissolve(&_destruct_dispatcher);
_entrypoint.dissolve(this);
if (is_init_process(this))
init_process_exited();
}
void start() { _entrypoint.activate(); }

View File

@ -56,7 +56,11 @@ namespace Noux {
}
}
~Terminal_io_channel() { sig_rec.dissolve(this); }
~Terminal_io_channel()
{
try { sig_rec.dissolve(this); }
catch (Genode::Signal_receiver::Context_not_associated) { }
}
bool write(Sysio *sysio, size_t &offset) override
{