Re: [PATCH 1/5] virfile: Introduce virCloseRange()

2023-08-23 Thread Ján Tomko
On a Tuesday in 2023, Michal Privoznik wrote: Linux gained new close_range() syscall (in v5.9) that allows closing a range of FDs in a single syscall. Ideally, we would use it to close FDs when spawning a process (e.g. via virCommand module). Glibc has close_range() wrapper over the syscall,

[PATCH 1/5] virfile: Introduce virCloseRange()

2023-08-22 Thread Michal Privoznik
Linux gained new close_range() syscall (in v5.9) that allows closing a range of FDs in a single syscall. Ideally, we would use it to close FDs when spawning a process (e.g. via virCommand module). Glibc has close_range() wrapper over the syscall, which falls back to iterative closing of all FDs