diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-14 13:10:24 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-15 07:41:34 +0100 |
commit | 173d1f84736c50cdfbd058b2570d698957b7ba94 (patch) | |
tree | c92e5aceb83cb3e041039e9a4d47b1bd4c97249a /cpukit/posix/src/killinfo.c | |
parent | score: Initialize thread control to zero (diff) | |
download | rtems-173d1f84736c50cdfbd058b2570d698957b7ba94.tar.bz2 |
posix: Store unblocked signals
Store the unblock signals to exploit the zero-initialization of the
thread control block.
Diffstat (limited to 'cpukit/posix/src/killinfo.c')
-rw-r--r-- | cpukit/posix/src/killinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index a90f4b1221..7f4adc738a 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @@ -52,7 +52,7 @@ */ #define _POSIX_signals_Is_interested( _api, _mask ) \ - ( ~(_api)->signals_blocked & (_mask) ) + ( (_api)->signals_unblocked & (_mask) ) int killinfo( pid_t pid, @@ -153,7 +153,7 @@ int killinfo( #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); + the_thread, the_thread->Wait.option, mask, ~api->signals_unblocked); #endif /* @@ -166,7 +166,7 @@ int killinfo( * Is this thread is blocked waiting for another signal but has * not blocked this one? */ - if (~api->signals_blocked & mask) + if (api->signals_unblocked & mask) goto process_it; } } |