ACE_TAO icon indicating copy to clipboard operation
ACE_TAO copied to clipboard

fix a bug in aio_cancel()

Open esohns opened this issue 1 month ago • 1 comments

excerpt from the aio_cancel(3) manpage: ..."If aiocbp is not NULL, and fd differs from the file descriptor with which the asynchronous operation was initiated, unspecified results occur. ..."

I debugged this on Linux, and the call returns -1, setting errno to EINVAL.

This PR fixes that condition.

Summary by CodeRabbit

  • Bug Fixes
    • Enhanced async I/O operation cancellation to target specific operations more precisely, improving reliability of asynchronous operations.

esohns avatar Nov 15 '25 18:11 esohns