aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2024-08-02 16:54:20 +0200
committerRichard Henderson <richard.henderson@linaro.org>2024-08-05 08:21:59 +1000
commit7532ca570a449bafe990a00f21ae41bff7709845 (patch)
tree057b117d8922de5ac824480ded65c63fde78e4f3 /system
parenta9b5d6e536c2c728a059b36ad434322dd9329c89 (diff)
qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd()
In order for this function to be usable by tap.c code, add a list of file descriptors that should not be closed. Signed-off-by: Clément Léger <cleger@rivosinc.com> Message-ID: <20240802145423.3232974-5-cleger@rivosinc.com> [rth: Use max_fd in qemu_close_all_open_fd_close_range] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'system')
-rw-r--r--system/async-teardown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/async-teardown.c b/system/async-teardown.c
index edf49e1007..9148ee8d04 100644
--- a/system/async-teardown.c
+++ b/system/async-teardown.c
@@ -52,7 +52,7 @@ static int async_teardown_fn(void *arg)
* Close all file descriptors that might have been inherited from the
* main qemu process when doing clone, needed to make libvirt happy.
*/
- qemu_close_all_open_fd();
+ qemu_close_all_open_fd(NULL, 0);
/* Set up a handler for SIGHUP and unblock SIGHUP. */
sigaction(SIGHUP, &sa, NULL);