Re: [PATCH v2 5/6] util/async-teardown: Use qemu_close_range() to close fds
On 6/16/23 17:27, Bin Meng wrote: +qemu_close_range(0, ~0U); This is clearly assuming that close_range exists. Should qemu_close_range attempt to lower last if >= _SC_OPEN_MAX? Or better to use that here. r~
[PATCH v2 5/6] util/async-teardown: Use qemu_close_range() to close fds
From: Zhangjin Wu Based on the old close_all_open_fd() of util/async-teardown.c, a new generic qemu_close_range() has been added in osdep.c. Now, let's switch over to use the generic qemu_close_range(). Signed-off-by: Zhangjin Wu Signed-off-by: Bin Meng --- (no changes since v1) util/async