Skip to content

Commit 90ac878

Browse files
committed
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 <[email protected]>
1 parent acd5285 commit 90ac878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/host_tools/vsock_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int run_echo(uint32_t cid, uint32_t port) {
8484
}
8585
}
8686

87-
return 0;
87+
return close(sock);
8888
}
8989

9090

0 commit comments

Comments
 (0)