summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/io_uring_setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/io_uring_setup.c b/test/io_uring_setup.c
index 2b76402..19fb8c5 100644
--- a/test/io_uring_setup.c
+++ b/test/io_uring_setup.c
@@ -46,6 +46,8 @@ flags_string(struct io_uring_params *p)
if (p->flags & IORING_SETUP_SQPOLL) {
if (add_pipe)
strncat(flagstr, "|", 64 - strlen(flagstr));
+ else
+ add_pipe = 1;
strncat(flagstr, "IORING_SETUP_SQPOLL", 64 - strlen(flagstr));
}
if (p->flags & IORING_SETUP_SQ_AFF) {