Changeset 4fa5eae in rtems


Ignore:
Timestamp:
Jan 11, 2000, 3:42:05 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e0c0161
Parents:
86c9eb0
Message:

This code did not return properly when a process oriented signal
was pending. Reported by Wayne Bullaughey <wayneb@…>.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/sigtimedwait.c

    r86c9eb0 r4fa5eae  
    8181  /* Process pending signals? */
    8282
    83   if ( *set & _POSIX_signals_Pending) {
     83  if ( *set & _POSIX_signals_Pending ) {
    8484    signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );
    8585    _POSIX_signals_Clear_signals( api, signo, the_info, TRUE, FALSE );
    8686
    87     if ( !info ) {
    88       the_info->si_signo = signo;
    89       the_info->si_code = SI_USER;
    90       the_info->si_value.sival_int = 0;
    91     }
     87    the_info->si_signo = signo;
     88    the_info->si_code = SI_USER;
     89    the_info->si_value.sival_int = 0;
     90    return signo;
    9291  }
    9392
  • cpukit/posix/src/sigtimedwait.c

    r86c9eb0 r4fa5eae  
    8181  /* Process pending signals? */
    8282
    83   if ( *set & _POSIX_signals_Pending) {
     83  if ( *set & _POSIX_signals_Pending ) {
    8484    signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );
    8585    _POSIX_signals_Clear_signals( api, signo, the_info, TRUE, FALSE );
    8686
    87     if ( !info ) {
    88       the_info->si_signo = signo;
    89       the_info->si_code = SI_USER;
    90       the_info->si_value.sival_int = 0;
    91     }
     87    the_info->si_signo = signo;
     88    the_info->si_code = SI_USER;
     89    the_info->si_value.sival_int = 0;
     90    return signo;
    9291  }
    9392
Note: See TracChangeset for help on using the changeset viewer.