From 81e1564a7d6097164ff914eb7e341f9fca42f1df Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 9 Feb 2012 16:13:56 -0800 Subject: rt: Detach pthreads before exiting Joinable pthreads need to be either joined or detached and we no longer join with the scheduler threads. --- src/rt/rust_task_thread.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_task_thread.cpp') diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index 48bd7f16bdf..87e8a616dfc 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -319,6 +319,7 @@ rust_task_thread::create_task(rust_task *spawner, const char *name, void rust_task_thread::run() { this->start_main_loop(); + detach(); sched->release_task_thread(); } -- cgit 1.4.1-3-g733a5