From 16f5c827966ad457f4e4ec5bfd2dcf325eec478f Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 15 Nov 2016 14:09:08 -0700 Subject: [PATCH] FileHandle from in exec close --- kernel/syscall/process.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/syscall/process.rs b/kernel/syscall/process.rs index 0aaaaf2..3a6f660 100644 --- a/kernel/syscall/process.rs +++ b/kernel/syscall/process.rs @@ -684,7 +684,7 @@ pub fn exec(path: &[u8], arg_ptrs: &[[usize; 2]]) -> Result { // 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