summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/sigsuspend.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-21 16:16:25 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-21 16:16:25 -0500
commitacfdf513e244ef6c8c7eac277d96c8d1a540aa17 (patch)
tree08928d54c84672ef9dd53852d8fff00dd6fb5d54 /cpukit/posix/src/sigsuspend.c
parentmqueueopen.c: Address set but unused variable warning (diff)
downloadrtems-acfdf513e244ef6c8c7eac277d96c8d1a540aa17.tar.bz2
sigsuspend.c: Address set but unused variable warning
Diffstat (limited to 'cpukit/posix/src/sigsuspend.c')
-rw-r--r--cpukit/posix/src/sigsuspend.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/posix/src/sigsuspend.c b/cpukit/posix/src/sigsuspend.c
index c3ab2bb0a0..ab935d1fe1 100644
--- a/cpukit/posix/src/sigsuspend.c
+++ b/cpukit/posix/src/sigsuspend.c
@@ -33,17 +33,20 @@ int sigsuspend(
{
sigset_t saved_signals_blocked;
sigset_t current_unblocked_signals;
- int status;
/*
* We use SIG_BLOCK and not SIG_SETMASK because there may be
* signals which might be pending, which might get caught here.
* We want the signals to be caught inside sigtimedwait.
+ *
+ * We ignore the return status codes because sigsuspend() is
+ * defined to either terminate or return -1 with errno set to
+ * EINTR.
*/
- status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
+ (void) sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
current_unblocked_signals = ~(*sigmask);
- status = sigtimedwait( &current_unblocked_signals, NULL, NULL );
+ (void) sigtimedwait( &current_unblocked_signals, NULL, NULL );
(void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );