summaryrefslogtreecommitdiff
path: root/nuttx/sched/sig_timedwait.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-03-21 11:22:50 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-03-21 11:22:50 -0600
commit35be17aff3581125b3d1303aa4871e8d38aa0d1e (patch)
tree996cb0a543b18c0be8f1bdada7db788c508f8507 /nuttx/sched/sig_timedwait.c
parentde7a618e72abacfd322dbd9776a1a7f022e890af (diff)
downloadpx4-nuttx-35be17aff3581125b3d1303aa4871e8d38aa0d1e.tar.gz
px4-nuttx-35be17aff3581125b3d1303aa4871e8d38aa0d1e.tar.bz2
px4-nuttx-35be17aff3581125b3d1303aa4871e8d38aa0d1e.zip
SAM4E-EK NSH: Increase the number of preallocated WDOGS to 32 to avoid timeout failures
Diffstat (limited to 'nuttx/sched/sig_timedwait.c')
-rw-r--r--nuttx/sched/sig_timedwait.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/sched/sig_timedwait.c b/nuttx/sched/sig_timedwait.c
index ed523fe37..f71e65961 100644
--- a/nuttx/sched/sig_timedwait.c
+++ b/nuttx/sched/sig_timedwait.c
@@ -150,7 +150,7 @@ static void sig_timeout(int argc, uint32_t itcb)
* SI_USER - Signal sent from kill, raise, or abort
* SI_QUEUE - Signal sent from sigqueue
* SI_TIMER - Signal is result of timer expiration
- * SI_ASYNCIO - Signal is the result of asynch IO completion
+ * SI_ASYNCIO - Signal is the result of asynch IO completion
* SI_MESGQ - Signal generated by arrival of a message on an
* empty message queue.
*
@@ -262,7 +262,7 @@ int sigtimedwait(FAR const sigset_t *set, FAR struct siginfo *info,
rtcb->waitdog = wd_create();
if (rtcb->waitdog)
{
- /* This little of nonsense is necessary for some
+ /* This little bit of nonsense is necessary for some
* processors where sizeof(pointer) < sizeof(uint32_t).
* see wdog.h.
*/
@@ -272,7 +272,8 @@ int sigtimedwait(FAR const sigset_t *set, FAR struct siginfo *info,
/* Start the watchdog */
- wd_start(rtcb->waitdog, waitticks, (wdentry_t)sig_timeout, 1, wdparm.dwarg);
+ wd_start(rtcb->waitdog, waitticks, (wdentry_t)sig_timeout, 1,
+ wdparm.dwarg);
/* Now wait for either the signal or the watchdog */
@@ -311,7 +312,7 @@ int sigtimedwait(FAR const sigset_t *set, FAR struct siginfo *info,
/* We were awakened by a signal... but is it one of the signals that
* we were waiting for?
*/
-
+
if (sigismember(set, rtcb->sigunbinfo.si_signo))
{
/* Yes.. the return value is the number of the signal that
@@ -338,7 +339,7 @@ int sigtimedwait(FAR const sigset_t *set, FAR struct siginfo *info,
set_errno(EAGAIN);
ret = ERROR;
}
-
+
/* Return the signal info to the caller if so requested */
if (info)