summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-20 20:23:46 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-20 20:23:46 +0200
commitb96414a4edc81821f84ead68cb936a6315c37a2d (patch)
tree3221702cbe757940f5b4e452f43f2a1b49ec619a
parent890a2f6228b479fd0a0084d6f7b0d36f43f28b74 (diff)
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.
-rw-r--r--kern/bootstrap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 03f4f0f..cb0f976 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");
}