From de56705bc815d510bbf3e40cbce95cc2a20bba2e Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Mon, 21 Oct 2024 07:32:04 +0100 Subject: [PATCH] test(vsock_helper): close sockets After we're done with a socket, close it, to avoid leaking resources. We do not need to rebuild the rootfs for this, this specific binary is compiled on the fly and SCP'd into the microVM. Signed-off-by: Patrick Roy --- tests/host_tools/vsock_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/host_tools/vsock_helper.c b/tests/host_tools/vsock_helper.c index 00424dd6b6eb..9368ffd79d6d 100644 --- a/tests/host_tools/vsock_helper.c +++ b/tests/host_tools/vsock_helper.c @@ -84,7 +84,7 @@ int run_echo(uint32_t cid, uint32_t port) { } } - return 0; + return close(sock); }