Changeset 634adfe in rtems


Ignore:
Timestamp:
Jul 29, 2009, 6:34:22 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
afcecbf7
Parents:
2ad8f85
Message:

2009-07-29 Joel Sherrill <joel.sherrill@…>

  • posix/src/killinfo.c: Add _Thread_Enable_dispatch() on EAGAIN error case. Add debug print on loop processing threads waiting for signal.
  • posix/src/psignal.c: When the sigwait() Thread Queue processing loop was changed to FIFO, I forgot to change the initialization to match.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r2ad8f85 r634adfe  
     12009-07-29      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * posix/src/killinfo.c: Add _Thread_Enable_dispatch() on EAGAIN
     4        error case.  Add debug print on loop processing threads waiting
     5        for signal.
     6        * posix/src/psignal.c: When the sigwait() Thread Queue processing loop
     7        was changed to FIFO, I forgot to change the initialization to match.
     8
    192009-07-29      Roxana Leontie <roxana.leontie@gmail.com>
    210
  • cpukit/posix/src/killinfo.c

    r2ad8f85 r634adfe  
    144144    the_thread = (Thread_Control *)the_node;
    145145    api = the_thread->API_Extensions[ THREAD_API_POSIX ];
     146
     147    #if defined(DEBUG_SIGNAL_PROCESSING)
     148      printk( "Waiting Thread=%p option=0x%08x mask=0x%08x blocked=0x%08x\n",
     149        the_thread, the_thread->Wait.option, mask, api->signals_blocked);
     150    #endif
    146151
    147152    /*
     
    333338    psiginfo = (POSIX_signals_Siginfo_node *)
    334339               _Chain_Get( &_POSIX_signals_Inactive_siginfo );
    335     if ( !psiginfo )
     340    if ( !psiginfo ) {
     341      _Thread_Enable_dispatch();
    336342      rtems_set_errno_and_return_minus_one( EAGAIN );
     343    }
    337344
    338345    psiginfo->Info = *siginfo;
  • cpukit/posix/src/psignal.c

    r2ad8f85 r634adfe  
    197197  _Thread_queue_Initialize(
    198198    &_POSIX_signals_Wait_queue,
    199     THREAD_QUEUE_DISCIPLINE_PRIORITY,
     199    THREAD_QUEUE_DISCIPLINE_FIFO,
    200200    STATES_WAITING_FOR_SIGNAL | STATES_INTERRUPTIBLE_BY_SIGNAL,
    201201    EAGAIN
Note: See TracChangeset for help on using the changeset viewer.