base: invalidate thread cap if task creation fails

Issue #1778
This commit is contained in:
Alexander Boettcher 2015-10-16 20:30:36 +02:00 committed by Christian Helmuth
parent 9ada3d3178
commit c7df65e1da
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ Process::Process(Dataspace_capability elf_ds_cap,
case ELF_FAIL:
_cpu_session_client.kill_thread(_thread0_cap);
_thread0_cap = Thread_capability();
case THREAD_FAIL: