diff options
Diffstat (limited to 'cpukit/posix/src/sigsuspend.c')
-rw-r--r-- | cpukit/posix/src/sigsuspend.c | 9 |
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( ¤t_unblocked_signals, NULL, NULL ); + (void) sigtimedwait( ¤t_unblocked_signals, NULL, NULL ); (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); |