summary refs log tree commit diff
path: root/src/rt/rust_task_thread.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-09 16:13:56 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-09 19:00:16 -0800
commit81e1564a7d6097164ff914eb7e341f9fca42f1df (patch)
tree7f2d454cfea9780c71993c73dd2ea8e60722a6a5 /src/rt/rust_task_thread.cpp
parent5d8d591ffc110836a12487ac53a120b2015856ce (diff)
downloadrust-81e1564a7d6097164ff914eb7e341f9fca42f1df.tar.gz
rust-81e1564a7d6097164ff914eb7e341f9fca42f1df.zip
rt: Detach pthreads before exiting
Joinable pthreads need to be either joined or detached and we no
longer join with the scheduler threads.
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
-rw-r--r--src/rt/rust_task_thread.cpp1
1 files changed, 1 insertions, 0 deletions
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();
 }