Kernel - Fix user handles not being cleared by Threads_Delete
[tpg/acess2.git] / KernelLand / Kernel / vfs / main.c
index 0261eca..4ed7829 100644 (file)
@@ -59,9 +59,10 @@ int VFS_Init(void)
        VFS_MkDir("/Devices");
        VFS_MkDir("/Mount");
        VFS_Mount("dev", "/Devices", "devfs", "");
-               
-       Log_Debug("VFS", "Setting max files");
-       *Threads_GetMaxFD() = 32;
+       
+       // Set default max user file count
+       // - Applies to PID0, but propagated to all children
+       *Threads_GetMaxFD(NULL) = 32;
        return 0;
 }
 

UCC git Repository :: git.ucc.asn.au