Re: [libvirt] [PATCH 1/4] util: new virCommandSetMax(MemLock|Processes|Files)

2013-04-26 Thread Daniel P. Berrange
On Thu, Apr 25, 2013 at 09:44:30PM -0400, Laine Stump wrote: > This patch adds two sets of functions: > > 1) lower level virProcessSet*() functions that will immediately set > the RLIMIT_MEMLOCK. RLIMIT_NPROC, or RLIMIT_NOFILE of either the > current process (using setrlimit()) or any other proces

[libvirt] [PATCH 1/4] util: new virCommandSetMax(MemLock|Processes|Files)

2013-04-25 Thread Laine Stump
This patch adds two sets of functions: 1) lower level virProcessSet*() functions that will immediately set the RLIMIT_MEMLOCK. RLIMIT_NPROC, or RLIMIT_NOFILE of either the current process (using setrlimit()) or any other process (using prlimit()). "current process" is indicated by passing a 0 for