Re: [libvirt PATCH 04/17] util: Introduce virProcess{Get,Set}Limit()

2021-03-08 Thread Michal Privoznik
On 3/5/21 8:13 PM, Andrea Bolognani wrote: These functions abstract part of the existing logic, which is the same in all virProcessSetMax*() functions, and changes it so that which underlying syscall is used depends on their availability rather than on the context in which they are called: since

[libvirt PATCH 04/17] util: Introduce virProcess{Get,Set}Limit()

2021-03-05 Thread Andrea Bolognani
These functions abstract part of the existing logic, which is the same in all virProcessSetMax*() functions, and changes it so that which underlying syscall is used depends on their availability rather than on the context in which they are called: since prlimit() and {g,s}etrlimit() have slightly