• L
    util: new virCommandSetMax(MemLock|Processes|Files) · 776d49f4
    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 pid.
    
    2) functions for virCommand* that will setup a virCommand object to
    set those limits at a later time just after it has forked a new
    process, but before it execs the new program.
    
    configure.ac has prlimit and setrlimit added to the list of functions
    to check for, and the low level functions log an "unsupported" error)
    on platforms that don't support those functions.
    776d49f4
configure.ac 84.3 KB