summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-02-28 14:39:38 -0700
committerJens Axboe <axboe@kernel.dk>2020-02-28 14:39:38 -0700
commit66b3760a93d5c7b93a05c99adfd557fc1d7a46b0 (patch)
tree4355dbe7f1d93a77c7ea0f1e1d5e53829ae87043
parent74a8d1ec92bceeca3617f680def997e706f25d00 (diff)
downloadliburing-66b3760a93d5c7b93a05c99adfd557fc1d7a46b0.tar.gz
liburing-66b3760a93d5c7b93a05c99adfd557fc1d7a46b0.tar.bz2
test/send_recvmsg: add missing socket close
This is especially important as we're now running two tests, and we don't want to leave one lingering and interfering. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/send_recvmsg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/send_recvmsg.c b/test/send_recvmsg.c
index a279a3f..8092947 100644
--- a/test/send_recvmsg.c
+++ b/test/send_recvmsg.c
@@ -73,6 +73,7 @@ static int recv_prep(struct io_uring *ring, struct iovec *iov, int gid)
goto err;
}
+ close(sockfd);
return 0;
err:
close(sockfd);