Implement the typical use of waitpid

This commit is contained in:
Jeremy Soller 2016-09-16 18:50:47 -06:00
parent e680a84a57
commit 3e726a5d0d
6 changed files with 146 additions and 101 deletions

View file

@ -77,4 +77,8 @@ impl ContextList {
}
Ok(context_lock)
}
pub fn remove(&mut self, id: usize) -> Option<RwLock<Context>> {
self.map.remove(&id)
}
}