Changeset d83c39dc in rtems


Ignore:
Timestamp:
Oct 5, 1999, 1:08:41 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4075af6f
Parents:
19ca797
Message:

Bug report and fix from Jay Kulpinski <jskulpin@…> where
sigemptyset(&old_mask) needed to be added on glibc2 systems. Ian
Lance Taylor pointed out that sigemptyset() is portable so Joel removed
all conditionals around calls to sigemptyset().

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/unix/cpu.c

    r19ca797 rd83c39dc  
    4848void  _CPU_ISR_Handler(int);
    4949
    50 static sigset_t         _CPU_Signal_mask;
     50static sigset_t _CPU_Signal_mask;
    5151static Context_Control_overlay
    5252          _CPU_Context_Default_with_ISRs_enabled CPU_STRUCTURE_ALIGNMENT;
     
    249249  sigset_t old_mask;
    250250
    251 #if defined(__linux__)
    252251  sigemptyset( &old_mask );
    253 #endif
    254252  sigprocmask(SIG_BLOCK, 0, &old_mask);
    255253
     
    658656  sigset_t  old_mask;
    659657
     658  sigemptyset( &old_mask );
    660659  status = sigprocmask(SIG_BLOCK, &_CPU_Signal_mask, &old_mask);
    661660  if ( status )
  • cpukit/score/cpu/unix/cpu.c

    r19ca797 rd83c39dc  
    4848void  _CPU_ISR_Handler(int);
    4949
    50 static sigset_t         _CPU_Signal_mask;
     50static sigset_t _CPU_Signal_mask;
    5151static Context_Control_overlay
    5252          _CPU_Context_Default_with_ISRs_enabled CPU_STRUCTURE_ALIGNMENT;
     
    249249  sigset_t old_mask;
    250250
    251 #if defined(__linux__)
    252251  sigemptyset( &old_mask );
    253 #endif
    254252  sigprocmask(SIG_BLOCK, 0, &old_mask);
    255253
     
    658656  sigset_t  old_mask;
    659657
     658  sigemptyset( &old_mask );
    660659  status = sigprocmask(SIG_BLOCK, &_CPU_Signal_mask, &old_mask);
    661660  if ( status )
Note: See TracChangeset for help on using the changeset viewer.