]> xenbits.xensource.com Git - libvirt.git/commit
process: Translate "unlimited" correctly
authorAndrea Bolognani <abologna@redhat.com>
Wed, 22 Mar 2017 12:44:45 +0000 (13:44 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Mar 2017 08:54:49 +0000 (10:54 +0200)
commit868d043a090776e645c87124bb0dc73105a7d397
treef65c07b86067670d46f89b29ddf52d47ad71422e
parent7e667664d28f90bf6916604a55ebad7e2d85305b
process: Translate "unlimited" correctly

The value we use internally to represent the lack of a memory
locking limit, VIR_DOMAIN_MEMORY_PARAM_UNLIMITED, doesn't
match the value setrlimit() and prlimit() use for the same
purpose, RLIM_INFINITY, so we have to handle the translation
ourselves.

Partially-resolves: https://bugzilla.redhat.com/1431793
src/util/virprocess.c