summaryrefslogtreecommitdiff
path: root/poll/unix/z_asio.c
diff options
context:
space:
mode:
Diffstat (limited to 'poll/unix/z_asio.c')
-rw-r--r--poll/unix/z_asio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/poll/unix/z_asio.c b/poll/unix/z_asio.c
index cdce230e5..3f4bec579 100644
--- a/poll/unix/z_asio.c
+++ b/poll/unix/z_asio.c
@@ -505,7 +505,10 @@ static apr_status_t asio_pollset_remove(apr_pollset_t *pollset,
if (elem->state == ASIO_INIT) {
/* asyncio call to cancel */
cancel_a.aio_cmd = AIO_CANCEL;
- cancel_a.aio_buf = &elem->a;
+ cancel_a.aio_buf = &elem->a; /* point to original aiocb */
+
+ cancel_a.aio_cflags = 0;
+ cancel_a.aio_cflags2 = 0;
/* we want the original aiocb to show up on the pollset message queue
* to eliminate race conditions