log upper FD removal in FdTbl::remove_file
This commit is contained in:
@@ -944,6 +944,9 @@ impl FdTbl {
|
||||
let removed_file_opt = fdtbl.get_mut(real_index).and_then(|opt| opt.take());
|
||||
if removed_file_opt.is_some() {
|
||||
self.active_count -= 1;
|
||||
if index & syscall::UPPER_FDTBL_TAG != 0 {
|
||||
crate::info!("FdTbl::remove_file upper idx={} active={}", real_index, self.active_count);
|
||||
}
|
||||
}
|
||||
|
||||
removed_file_opt
|
||||
|
||||
Reference in New Issue
Block a user