mirror of
https://github.com/openharmony/third_party_liburing.git
synced 2026-07-20 22:58:41 -04:00
test/accept.c: close the listen fd at the end of the test
Close the listen fd when it goes to the end, otherwise it may causes issues for the next tests Signed-off-by: Hao Xu <howeyxu@tencent.com> Link: https://lore.kernel.org/r/20220514143534.59162-2-haoxu.linux@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -425,9 +425,11 @@ static int test_accept_cancel(unsigned usecs, unsigned int nr)
|
||||
}
|
||||
|
||||
io_uring_queue_exit(&m_io_uring);
|
||||
close(fd);
|
||||
return 0;
|
||||
err:
|
||||
io_uring_queue_exit(&m_io_uring);
|
||||
close(fd);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user