From 4fa5eaee52c79068cb115582f00c0a2505906210 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Jan 2000 15:42:05 +0000 Subject: This code did not return properly when a process oriented signal was pending. Reported by Wayne Bullaughey . --- cpukit/posix/src/sigtimedwait.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'cpukit/posix/src') 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; -- cgit v1.2.3