mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
core/exec-invoke: Fix missing arguments for PR_SET_MEMORY_MERGE call
Without it prctl will always fail, even if using a kernel version that supports the PR_SET_MEMORY_MERGE call.
This commit is contained in:
parent
793732d32b
commit
9bb89a55a2
@ -4733,7 +4733,7 @@ int exec_invoke(
|
||||
}
|
||||
|
||||
if (context->memory_ksm >= 0)
|
||||
if (prctl(PR_SET_MEMORY_MERGE, context->memory_ksm) < 0) {
|
||||
if (prctl(PR_SET_MEMORY_MERGE, context->memory_ksm, 0, 0, 0) < 0) {
|
||||
if (ERRNO_IS_NOT_SUPPORTED(errno))
|
||||
log_exec_debug_errno(context,
|
||||
params,
|
||||
|
Loading…
x
Reference in New Issue
Block a user