about summary refs log tree commit diff
path: root/src/libstd/task/spawn.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-01 06:01:39 -0700
committerbors <bors@rust-lang.org>2013-08-01 06:01:39 -0700
commit18d124b9b5dcb9915e5e1489eed81ed6a8b90c39 (patch)
tree08815543f7ba4e527622ab5c654f87b17d91c252 /src/libstd/task/spawn.rs
parent9824d90ffd7684eca7171c4e019fd85b9317904e (diff)
parentbc7cee7bbf816be7a712c06a93015dc3c6fd5611 (diff)
auto merge of #8158 : bblum/rust/task-cleanup, r=brson
r? @brson
Diffstat (limited to 'src/libstd/task/spawn.rs')
-rw-r--r--src/libstd/task/spawn.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/task/spawn.rs b/src/libstd/task/spawn.rs
index c7f34974a6e..81db5e690a6 100644
--- a/src/libstd/task/spawn.rs
+++ b/src/libstd/task/spawn.rs
@@ -725,6 +725,8 @@ fn spawn_raw_newsched(mut opts: TaskOpts, f: ~fn()) {
         task.death.on_exit = Some(on_exit);
     }
 
+    task.name = opts.name.take();
+
     rtdebug!("spawn about to take scheduler");
 
     let sched = Local::take::<Scheduler>();