aio_cancel need signal caller after the succeed and fix minor issue in the error handler

This commit is contained in:
Xiang Xiao
2019-01-27 09:39:33 -06:00
committed by Gregory Nutt
parent fb63c0a293
commit 964f0ab304
7 changed files with 35 additions and 29 deletions
+2 -2
View File
@@ -59,7 +59,7 @@
struct lio_sighand_s
{
FAR struct aiocb * const *list; /* List of I/O operations */
FAR struct sigevent *sig; /* Describes how to signal the caller */
FAR struct sigevent sig; /* Describes how to signal the caller */
int nent; /* Number or elements in list[] */
pid_t pid; /* ID of client */
sigset_t oprocmask; /* sigprocmask to restore */
@@ -245,7 +245,7 @@ static int lio_sigsetup(FAR struct aiocb * const *list, int nent,
/* Initialize the allocated structure */
sighand->list = list;
sighand->sig = sig;
sighand->sig = *sig;
sighand->nent = nent;
sighand->pid = getpid();