vsock/test: Introduce enable_so_linger() helper
authorMichal Luczaj <mhal@rbox.co>
Wed, 21 May 2025 23:18:24 +0000 (01:18 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 27 May 2025 09:05:21 +0000 (11:05 +0200)
commit8b07b7e5c253981ccbab2f2506e07f5ef1082181
treec61f6d39bec5e76d25b1e8bb7fcfaebac942c91c
parente78e0596c762609ee5a92bd9d38351694b52f249
vsock/test: Introduce enable_so_linger() helper

Add a helper function that sets SO_LINGER. Adapt the caller.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20250522-vsock-linger-v6-4-2ad00b0e447e@rbox.co
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/vsock/util.c
tools/testing/vsock/util.h
tools/testing/vsock/vsock_test.c