Use flush_all instead of flush for performance

This commit is contained in:
Jeremy Soller 2016-09-13 11:20:55 -06:00
parent 0a2abe0f54
commit 4341a2d725
2 changed files with 46 additions and 6 deletions

View file

@ -49,7 +49,7 @@ pub fn clone(flags: usize) -> Result<usize> {
pub fn exit(status: usize) -> ! {
println!("Exit {}", status);
{
let contexts = context::contexts();
let context_lock = contexts.current().expect("tried to exit without context");