diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-29 23:19:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-29 23:19:28 +0000 |
commit | 290d2b79fefb3419fa84d72a5463cea134976581 (patch) | |
tree | 97069e1a59f85eea47ffe3803c88b6ca9f972138 /cpukit/posix/src/psignal.c | |
parent | 2009-06-29 Xi Yang <hiyangxi@gmail.com> (diff) | |
download | rtems-290d2b79fefb3419fa84d72a5463cea134976581.tar.bz2 |
2009-06-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/killinfo.c, posix/src/mutexinit.c, posix/src/psignal.c,
posix/src/psignalchecksignal.c, posix/src/pthread.c,
posix/src/pthreadexit.c, posix/src/pthreadinitthreads.c: Remove
includes of <assert.h> where possible. Make other uses conditional on
ifdef RTEMS_DEBUG.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/psignal.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c index 3d8b8d80e5..922908724e 100644 --- a/cpukit/posix/src/psignal.c +++ b/cpukit/posix/src/psignal.c @@ -13,7 +13,9 @@ #include "config.h" #endif -#include <assert.h> +#if defined(RTEMS_DEBUG) + #include <assert.h> +#endif #include <errno.h> #include <pthread.h> #include <signal.h> @@ -172,9 +174,11 @@ void _POSIX_signals_Manager_Initialization(void) * Ensure we have the same number of vectors and default vector entries */ - assert( - sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) - ); + #if defined(RTEMS_DEBUG) + assert( + sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) + ); + #endif memcpy( _POSIX_signals_Vectors, @@ -185,13 +189,11 @@ void _POSIX_signals_Manager_Initialization(void) /* * Initialize the set of pending signals for the entire process */ - sigemptyset( &_POSIX_signals_Pending ); /* * Initialize the queue we use to block for signals */ - _Thread_queue_Initialize( &_POSIX_signals_Wait_queue, THREAD_QUEUE_DISCIPLINE_PRIORITY, @@ -204,7 +206,6 @@ void _POSIX_signals_Manager_Initialization(void) /* * Allocate the siginfo pools. */ - for ( signo=1 ; signo<= SIGRTMAX ; signo++ ) _Chain_Initialize_empty( &_POSIX_signals_Siginfo[ signo ] ); |