mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
linux: Fix broken process limits implementation
This commit is contained in:
@ -451,6 +451,7 @@ namespace Tasking
|
||||
bool IsCritical = false;
|
||||
bool IsDebugEnabled = false;
|
||||
bool IsKernelDebugEnabled = false;
|
||||
bool CanAdjustHardLimits = false;
|
||||
struct
|
||||
{
|
||||
uint16_t UserID = UINT16_MAX;
|
||||
@ -460,11 +461,17 @@ namespace Tasking
|
||||
pid_t SessionID = 0;
|
||||
} Security{};
|
||||
struct
|
||||
{
|
||||
rlim_t OpenFiles = 128;
|
||||
rlim_t Threads = 64;
|
||||
rlim_t Memory = 1073741824; /* 1 GiB */
|
||||
} SoftLimits{};
|
||||
struct
|
||||
{
|
||||
rlim_t OpenFiles = 4096;
|
||||
rlim_t Threads = 1024;
|
||||
rlim_t Memory = 8589934592; /* 8 GiB */
|
||||
} Limits{};
|
||||
} HardLimits{};
|
||||
TaskInfo Info{};
|
||||
ThreadLocalStorage TLS{};
|
||||
|
||||
|
Reference in New Issue
Block a user