Merge branch 'master' into vfs-dev
[lunaix-os.git] / lunaix-os / kernel / sched.c
index 37c02d1c705988dc5d53b0e738bbaaa83370ce37..be9952519fe282993a29154123c89a90f8d7b249 100644 (file)
@@ -322,7 +322,7 @@ destroy_process(pid_t pid)
     for (size_t i = 0; i < VFS_MAX_FD; i++) {
         struct v_fd* fd = proc->fdtable->fds[i];
         if (fd)
-            vfs_close(fd);
+            vfs_close(fd->file);
     }
 
     vfree(proc->fdtable);