qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] oslib: fix OSes support for qemu_close_all_open_fd()
@ 2024-08-30 11:14 Clément Léger
  2024-08-30 11:14 ` [PATCH 1/2] qemu/osdep: fix current process fds path for other OSes Clément Léger
  2024-08-30 11:14 ` [PATCH 2/2] qemu/osdep: handle sysconf(_SC_OPEN_MAX) return value == -1 Clément Léger
  0 siblings, 2 replies; 15+ messages in thread
From: Clément Léger @ 2024-08-30 11:14 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel
  Cc: Clément Léger, Richard Henderson,
	Daniel P . Berrangé

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-09-03 17:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30 11:14 [PATCH 0/2] oslib: fix OSes support for qemu_close_all_open_fd() Clément Léger
2024-08-30 11:14 ` [PATCH 1/2] qemu/osdep: fix current process fds path for other OSes Clément Léger
2024-08-30 11:16   ` Daniel P. Berrangé
2024-08-30 11:31   ` Michael Tokarev
2024-08-30 11:14 ` [PATCH 2/2] qemu/osdep: handle sysconf(_SC_OPEN_MAX) return value == -1 Clément Léger
2024-08-30 11:18   ` Daniel P. Berrangé
2024-08-30 11:31   ` Michael Tokarev
2024-08-30 11:57     ` Clément Léger
2024-09-02 19:38       ` Philippe Mathieu-Daudé
2024-09-03  7:53         ` Clément Léger
2024-09-03 13:34           ` Philippe Mathieu-Daudé
2024-09-03 13:37             ` Clément Léger
2024-09-03 15:02               ` Philippe Mathieu-Daudé
2024-09-03 15:21                 ` Daniel P. Berrangé
2024-09-03 17:56                   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).