std: Fix deadlock by unsupervising the global I/O task

This commit is contained in:
Brian Anderson 2012-07-10 15:10:13 -07:00
parent 773e3df310
commit ccee8cb4f9

View File

@ -40,6 +40,7 @@ fn get_monitor_task_gl() -> iotask unsafe {
let builder_fn = || {
let builder = task::builder();
task::unsupervise(builder);
task::set_sched_mode(builder, task::single_threaded);
builder
};