[rtems commit] posix: Fix aio_cancel()

Sebastian Huber sebh at rtems.org
Wed Oct 4 07:26:47 UTC 2017


Module:    rtems
Branch:    4.11
Commit:    c139a705979600f7e959ff8d58f6dc44ab80faa9
Changeset: http://git.rtems.org/rtems/commit/?id=c139a705979600f7e959ff8d58f6dc44ab80faa9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Oct  4 09:18:56 2017 +0200

posix: Fix aio_cancel()

Close #3164.

---

 cpukit/posix/src/aio_cancel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/posix/src/aio_cancel.c b/cpukit/posix/src/aio_cancel.c
index edb80ee..cf84055 100644
--- a/cpukit/posix/src/aio_cancel.c
+++ b/cpukit/posix/src/aio_cancel.c
@@ -58,7 +58,7 @@ int aio_cancel(int fildes, struct aiocb  *aiocbp)
         rtems_chain_extract (&r_chain->next_fd);
         rtems_aio_remove_fd (r_chain);
         pthread_mutex_destroy (&r_chain->mutex);
-        pthread_cond_destroy (&r_chain->mutex);
+        pthread_cond_destroy (&r_chain->cond);
         free (r_chain);
 
         pthread_mutex_unlock (&aio_request_queue.mutex);



More information about the vc mailing list