VFS object auto cleanup
This commit is contained in:
@ -194,6 +194,13 @@ void proc_reaper(void) {
|
||||
|
||||
LL_REMOVE(PROCS.procs, zombie);
|
||||
|
||||
for (size_t i = 0; i < zombie->vobjcnt; i++) {
|
||||
if (zombie->vobjs[i] != NULL) {
|
||||
vfs_close(zombie->vobjs[i]);
|
||||
zombie->vobjs[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
pmm_free((uintptr_t)(zombie->platformdata.kstack - PROC_STACKSIZE), PROC_STACKBLOCKS);
|
||||
|
||||
if (!zombie->kern) {
|
||||
|
Reference in New Issue
Block a user