On 12/10/2015 11:33 AM, Andrea Bolognani wrote:
> On Wed, 2015-12-09 at 12:00 -0500, John Ferlan wrote:
>> On 11/24/2015 08:56 AM, Andrea Bolognani wrote:
>>> @@ -788,6 +788,48 @@ virProcessSetMaxMemLock(pid_t pid ATTRIBUTE_UNUSED,
>>> unsigned long long bytes)
>>> }
>>> #endif /* ! (HAVE_SE
On Wed, 2015-12-09 at 12:00 -0500, John Ferlan wrote:
> On 11/24/2015 08:56 AM, Andrea Bolognani wrote:
> > @@ -788,6 +788,48 @@ virProcessSetMaxMemLock(pid_t pid ATTRIBUTE_UNUSED,
> > unsigned long long bytes)
> > }
> > #endif /* ! (HAVE_SETRLIMIT && defined(RLIMIT_MEMLOCK)) */
> >
> > +#if H
On 11/24/2015 08:56 AM, Andrea Bolognani wrote:
> This function can be used to retrieve the current locked memory
> limit for a process, so that the setting can be later restored.
>
> Add a configure check for getrlimit(), which we now use.
> ---
> configure.ac | 2 +-
> src/libvir
This function can be used to retrieve the current locked memory
limit for a process, so that the setting can be later restored.
Add a configure check for getrlimit(), which we now use.
---
configure.ac | 2 +-
src/libvirt_private.syms | 1 +
src/util/virprocess.c| 42 +++