Remove vobjcnt field of Proc

This commit is contained in:
2025-10-14 20:07:42 +02:00
parent 406434fed0
commit 01b37e41c2
3 changed files with 8 additions and 11 deletions

View File

@ -180,7 +180,7 @@ void proc_reaper(void) {
Proc *zombie = head;
LL_REMOVE(PROCS.procs, zombie);
for (size_t i = 0; i < zombie->vobjcnt; i++) {
for (size_t i = 0; i < PROC_VFSHANDLES_MAX; i++) {
if (zombie->vobjs[i] != NULL) {
vfs_close(zombie->vobjs[i]);
zombie->vobjs[i] = NULL;

View File

@ -55,7 +55,6 @@ typedef struct Proc {
VasRange *vas;
VfsObj *vobjs[PROC_VFSHANDLES_MAX];
uint64_t vobjcnt;
IpcPipe *pipes[PROC_PIPEHANDLES_MAX];
SpinLock pipes_spinlock;