Commit baf3ec25 authored by Florian Fischer's avatar Florian Fischer
Browse files

fix io_uring setup error reporting

parent 47436330
Pipeline #66562 passed with stage
in 1 minute and 32 seconds
......@@ -10,7 +10,7 @@ struct io_uring ring;
void init(__attribute__((unused)) int fd) {
int res = io_uring_queue_init(1, &ring, 0);
if (res < 0) {
errno = res;
errno = -res;
err(EXIT_FAILURE, "io_uring_setup failed");
}
}
......
......@@ -26,7 +26,7 @@ struct io_uring_sqe* sqpoll_ring_get_sqe(struct io_uring* ring) {
void io_uring_init_sqpoll(struct io_uring* ring) {
int res = io_uring_queue_init(SQPOLL_RING_ENTRIES, ring, IORING_SETUP_SQPOLL);
if (res < 0) {
errno = res;
errno = -res;
err(EXIT_FAILURE, "io_uring_setup failed");
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment