mirror of
https://github.com/systemd/systemd
synced 2024-09-06 00:41:36 +00:00
pid1: fix DefaultTasksMax initialization
Otherwise DefaultTasksMax is always set to "inifinity".
This was broken by fb39af4ce4
.
This commit is contained in:
parent
751d8f7d54
commit
c0000de87d
|
@ -2133,7 +2133,7 @@ static void reset_arguments(void) {
|
|||
arg_default_blockio_accounting = false;
|
||||
arg_default_memory_accounting = MEMORY_ACCOUNTING_DEFAULT;
|
||||
arg_default_tasks_accounting = true;
|
||||
arg_default_tasks_max = UINT64_MAX;
|
||||
arg_default_tasks_max = system_tasks_max_scale(DEFAULT_TASKS_MAX_PERCENTAGE, 100U);
|
||||
arg_machine_id = (sd_id128_t) {};
|
||||
arg_cad_burst_action = EMERGENCY_ACTION_REBOOT_FORCE;
|
||||
arg_default_oom_policy = OOM_STOP;
|
||||
|
@ -2149,8 +2149,6 @@ static int parse_configuration(const struct rlimit *saved_rlimit_nofile,
|
|||
assert(saved_rlimit_nofile);
|
||||
assert(saved_rlimit_memlock);
|
||||
|
||||
arg_default_tasks_max = system_tasks_max_scale(DEFAULT_TASKS_MAX_PERCENTAGE, 100U);
|
||||
|
||||
/* Assign configuration defaults */
|
||||
reset_arguments();
|
||||
|
||||
|
|
Loading…
Reference in a new issue