summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-11 15:42:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-11 15:42:05 +0000
commit4fa5eaee52c79068cb115582f00c0a2505906210 (patch)
tree20a0c156286a60cbdd0151ebc4077ac16f0b0943 /cpukit/posix/src
parentBug fix from Wayne Bullaughey <wayneb@cacdsp.com> to use the complement (diff)
downloadrtems-4fa5eaee52c79068cb115582f00c0a2505906210.tar.bz2
This code did not return properly when a process oriented signal
was pending. Reported by Wayne Bullaughey <wayneb@cacdsp.com>.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r--cpukit/posix/src/sigtimedwait.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/cpukit/posix/src/sigtimedwait.c b/cpukit/posix/src/sigtimedwait.c
index 2134d8a82a..b3b2de247d 100644
--- a/cpukit/posix/src/sigtimedwait.c
+++ b/cpukit/posix/src/sigtimedwait.c
@@ -80,15 +80,14 @@ int sigtimedwait(
/* Process pending signals? */
- if ( *set & _POSIX_signals_Pending) {
+ if ( *set & _POSIX_signals_Pending ) {
signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );
_POSIX_signals_Clear_signals( api, signo, the_info, TRUE, FALSE );
- if ( !info ) {
- the_info->si_signo = signo;
- the_info->si_code = SI_USER;
- the_info->si_value.sival_int = 0;
- }
+ the_info->si_signo = signo;
+ the_info->si_code = SI_USER;
+ the_info->si_value.sival_int = 0;
+ return signo;
}
interval = 0;