summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-02-11 23:08:14 +0000
committerJens Axboe <axboe@kernel.dk>2021-02-11 16:43:45 -0700
commitc7143a4550cb904f858de1b2b829068d1d9a5581 (patch)
tree6f285779f80d04d78b2c74f5f31690ded2d8f9ab
parent516e913eaeec0add5213dc7d0ea38c61fd2b80b6 (diff)
downloadliburing-c7143a4550cb904f858de1b2b829068d1d9a5581.tar.gz
liburing-c7143a4550cb904f858de1b2b829068d1d9a5581.tar.bz2
test/link-timeout: close pipes after yourself
Close pipe fds when we exit test_single_link_timeout(). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/link-timeout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/link-timeout.c b/test/link-timeout.c
index a517c5e..5d8417f 100644
--- a/test/link-timeout.c
+++ b/test/link-timeout.c
@@ -528,6 +528,8 @@ static int test_single_link_timeout(struct io_uring *ring, unsigned nsec)
io_uring_cqe_seen(ring, cqe);
}
+ close(fds[0]);
+ close(fds[1]);
return 0;
err:
return 1;