log upper FD removal in FdTbl::remove_file

This commit is contained in:
2026-07-11 05:39:45 +03:00
parent 63d7dc0470
commit f821d2190a
+3
View File
@@ -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