Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
e5f34875
Commit
e5f34875
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
AIO signal related fixes; extensino to AIO test
parent
f575567f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/aio/aio_signal.c
+12
-4
12 additions, 4 deletions
fs/aio/aio_signal.c
with
12 additions
and
4 deletions
fs/aio/aio_signal.c
+
12
−
4
View file @
e5f34875
...
...
@@ -96,6 +96,9 @@
int
aio_signal
(
pid_t
pid
,
FAR
struct
aiocb
*
aiocbp
)
{
#ifdef CONFIG_CAN_PASS_STRUCTS
union
sigval
value
;
#endif
int
errcode
;
int
status
;
int
ret
;
...
...
@@ -115,10 +118,10 @@ int aio_signal(pid_t pid, FAR struct aiocb *aiocbp)
status
=
sigqueue
(
pid
,
aiocbp
->
aio_sigevent
.
sigev_sign
,
aiocbp
->
aio_sigevent
.
sigev_value
.
sival_ptr
);
#endif
if
(
ret
<
0
)
if
(
status
<
0
)
{
errcode
=
get_errno
();
fdbg
(
"ERROR: sigqueue failed: %d
\n
"
,
errcode
);
fdbg
(
"ERROR: sigqueue
#1
failed: %d
\n
"
,
errcode
);
ret
=
ERROR
;
}
}
...
...
@@ -127,11 +130,16 @@ int aio_signal(pid_t pid, FAR struct aiocb *aiocbp)
* on sig_suspend();
*/
status
=
kill
(
pid
,
SIGPOLL
);
#ifdef CONFIG_CAN_PASS_STRUCTS
value
.
sival_ptr
=
aiocbp
;
status
=
sigqueue
(
pid
,
SIGPOLL
,
value
);
#else
status
=
sigqueue
(
pid
,
SIGPOLL
,
aiocbp
);
#endif
if
(
status
&&
ret
==
OK
)
{
errcode
=
get_errno
();
fdbg
(
"ERROR:
kill
failed: %d
\n
"
,
errcode
);
fdbg
(
"ERROR:
sigqueue #2
failed: %d
\n
"
,
errcode
);
ret
=
ERROR
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment