Skip to content

Commit

Permalink
test(vsock_helper): close sockets
Browse files Browse the repository at this point in the history
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 <roypat@amazon.co.uk>
  • Loading branch information
roypat committed Oct 21, 2024
1 parent f91874c commit de56705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/host_tools/vsock_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int run_echo(uint32_t cid, uint32_t port) {
}
}

return 0;
return close(sock);
}


Expand Down

0 comments on commit de56705

Please sign in to comment.