mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
libs/libc/aio/lio_listio.c: Fix a typograpical error.
This commit is contained in:
parent
f6e21619e2
commit
18f971aa35
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue