From 18f971aa35ef49de067776cea43e172b939d4cfb Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 8 Nov 2018 19:07:15 -0600 Subject: [PATCH] libs/libc/aio/lio_listio.c: Fix a typograpical error. --- libs/libc/aio/lio_listio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/libc/aio/lio_listio.c b/libs/libc/aio/lio_listio.c index 4703a888f8c..d194a45f5a2 100644 --- a/libs/libc/aio/lio_listio.c +++ b/libs/libc/aio/lio_listio.c @@ -657,7 +657,7 @@ int lio_listio(int mode, FAR struct aiocb *const list[], int nent, * caller ourself? */ - else if (sig == NULL) + else if (sig != NULL) { if (nqueued > 0) { @@ -676,8 +676,7 @@ int lio_listio(int mode, FAR struct aiocb *const list[], int nent, } else { - status = nxsig_notification(sighand->pid, &sighand->sig, - SI_ASYNCIO); + status = nxsig_notification(getpid(), sig, SI_ASYNCIO); if (status < 0 && ret == OK) { /* Something bad happened while performing the notification