diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-27 13:36:54 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-27 14:25:32 -0800 |
| commit | b3f77bf92703543793a8073c8319e461e024cb69 (patch) | |
| tree | f32f999cc958d5c5a9d496025be4d5c31ca1b5ee /src/rt/rust_task_thread.cpp | |
| parent | e4c027446ec0d985be98dcbdce2b80308b88b12a (diff) | |
| download | rust-b3f77bf92703543793a8073c8319e461e024cb69.tar.gz rust-b3f77bf92703543793a8073c8319e461e024cb69.zip | |
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.
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
| -rw-r--r-- | src/rt/rust_task_thread.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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(); } |
