From b3f77bf92703543793a8073c8319e461e024cb69 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 27 Feb 2012 13:36:54 -0800 Subject: rt: Change the way the kernel exits to avoid pthread leaks This makes the kernel join every scheduler thread before exiting in order to ensure that all threads are completely terminated before the process exits. On my machine, for 32-bit targets, this was causing regular valgrind errors. --- src/rt/rust_task_thread.cpp | 1 - 1 file changed, 1 deletion(-) (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 dde16ad70bd..e64e7ab4ed8 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -320,7 +320,6 @@ 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