From 3363859cb7cacb37ad82b39f91d72a53086e4ca9 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 --- syscall/process.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/syscall/process.rs b/syscall/process.rs index 0aaaaf2..3a6f660 100644 --- a/syscall/process.rs +++ b/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