mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 01:25:09 +00:00
Fix bug where Vnode kept its Inode alive indefinitely.
This commit is contained in:
parent
033a42b580
commit
12a6963a5d
2 changed files with 5 additions and 1 deletions
|
@ -368,7 +368,10 @@ ByteBuffer procfs$vnodes()
|
|||
path = static_cast<const TTY*>(dev)->tty_name();
|
||||
}
|
||||
}
|
||||
ptr += ksprintf(ptr, "vnode %03u: %02u:%08u (%u) %s\n", i, vnode.inode.fsid(), vnode.inode.index(), vnode.retain_count(), path.characters());
|
||||
ptr += ksprintf(ptr, "vnode %03u: %02u:%08u (%u) %s", i, vnode.inode.fsid(), vnode.inode.index(), vnode.retain_count(), path.characters());
|
||||
if (vnode.characterDevice())
|
||||
ptr += ksprintf(ptr, " (chardev: %p)", vnode.characterDevice());
|
||||
ptr += ksprintf(ptr, "\n");
|
||||
}
|
||||
*ptr = '\0';
|
||||
buffer.trim(ptr - (char*)buffer.pointer());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue