FileHandle from in exec close

This commit is contained in:
Jeremy Soller
2016-11-15 14:09:08 -07:00
parent 7c35351dc2
commit 3363859cb7

View File

@@ -684,7 +684,7 @@ pub fn exec(path: &[u8], arg_ptrs: &[[usize; 2]]) -> Result<usize> {
// Close
{
if let Some(event_id) = file.event {
context::event::unregister(fd, file.scheme, event_id);
context::event::unregister(FileHandle::from(fd), file.scheme, event_id);
}
let scheme_option = {
@@ -1118,4 +1118,3 @@ pub fn waitpid(pid: ContextId, status_ptr: usize, flags: usize) -> Result<Contex
}
}
}