Skip to content

Commit 4730776

Browse files
committed
explicitly specify IORING_ASYNC_CANCEL_USERDATA
1 parent 7ca09c4 commit 4730776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/IORing/Submission.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Submission<T: Sendable>: CustomStringConvertible {
100100
do {
101101
precondition(cancellationToken != nil)
102102
let sqe = try ring.getSqe()
103-
io_uring_prep_cancel(sqe, cancellationToken, 0)
103+
io_uring_prep_cancel(sqe, cancellationToken, Int32(IORING_ASYNC_CANCEL_USERDATA))
104104
_ = io_uring_sqe_set_block(sqe) { cqe in
105105
self.onCancel(cqe: cqe.pointee)
106106
}

0 commit comments

Comments
 (0)