mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
util: Fix error reporting in virProcessSetMaxMemLock
Commit v7.1.0-136-g6a6d6bb520 refactored virProcessSetMaxMemLock by moving its part into a new virProcessSetLimit, but lost "return -1" on error. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
425d3b12a4
commit
a7d2272e59
@ -926,6 +926,7 @@ virProcessSetMaxMemLock(pid_t pid, unsigned long long bytes)
|
||||
_("cannot limit locked memory "
|
||||
"of process %lld to %llu"),
|
||||
(long long int)pid, bytes);
|
||||
return -1;
|
||||
}
|
||||
|
||||
VIR_DEBUG("Locked memory for process %lld limited to %llu bytes",
|
||||
|
Loading…
x
Reference in New Issue
Block a user