[PATCH 0/2] oslib: fix OSes support for qemu_close_all_open_fd()

Clément Léger posted 2 patches 1 year, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240830111451.3799490-1-cleger@rivosinc.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>
util/oslib-posix.c | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
[PATCH 0/2] oslib: fix OSes support for qemu_close_all_open_fd()
Posted by Clément Léger 1 year, 5 months ago
Some OSes (MacOS, FreeBSD) were not correctly handled by the original
close_fd() code. Handle them by fixing the path for self process open
file descriptors location as well as sysconf(_SC_OPEN_MAX) potentially
returning -1 on MacOS.

---

Clément Léger (2):
  qemu/osdep: fix current process fds path for other OSes
  qemu/osdep: handle sysconf(_SC_OPEN_MAX) return value == -1

 util/oslib-posix.c | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

-- 
2.45.2