From b96414a4edc81821f84ead68cb936a6315c37a2d Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Mon, 20 Jul 2015 20:23:46 +0200 Subject: kern/bootstrap: deallocate thread Previously, killing the thread would fail because of the extra reference, making task_terminate loop forever. * kern/bootstrap.c (boot_script_exec_command): Deallocate thread. --- kern/bootstrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kern/bootstrap.c b/kern/bootstrap.c index 03f4f0f6..cb0f9765 100644 --- a/kern/bootstrap.c +++ b/kern/bootstrap.c @@ -736,6 +736,7 @@ boot_script_exec_cmd (void *hook, task_t task, char *path, int argc, simple_lock (&info.lock); } simple_unlock (&info.lock); + thread_deallocate (thread); printf ("\n"); } -- cgit v1.2.3