From 634adfeeae78c6e24162f293985eb2c7c6a752cc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 29 Jul 2009 18:34:22 +0000 Subject: 2009-07-29 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. --- cpukit/posix/src/killinfo.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/src/killinfo.c') diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index f0201a5bd6..7c0f38e95a 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @@ -144,6 +144,11 @@ int killinfo( the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; + #if defined(DEBUG_SIGNAL_PROCESSING) + printk( "Waiting Thread=%p option=0x%08x mask=0x%08x blocked=0x%08x\n", + the_thread, the_thread->Wait.option, mask, api->signals_blocked); + #endif + /* * Is this thread is actually blocked waiting for the signal? */ @@ -332,8 +337,10 @@ post_process_signal: psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); - if ( !psiginfo ) + if ( !psiginfo ) { + _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); + } psiginfo->Info = *siginfo; -- cgit v1.2.3