X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fvfs%2Fmain.c;h=4ed782982d9a401cda595ba43da47f4fa71fd12a;hb=9eadc33399e705035c33e8434a9644d91e44ed44;hp=0261eca3b9c3598ec913c6c1329a602a085934af;hpb=bffac877be10357e17ba29ffce8978efc405afdd;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/vfs/main.c b/KernelLand/Kernel/vfs/main.c index 0261eca3..4ed78298 100644 --- a/KernelLand/Kernel/vfs/main.c +++ b/KernelLand/Kernel/vfs/main.c @@ -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; }