From 173d1f84736c50cdfbd058b2570d698957b7ba94 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 Dec 2015 13:10:24 +0100 Subject: posix: Store unblocked signals Store the unblock signals to exploit the zero-initialization of the thread control block. --- cpukit/posix/src/killinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/posix/src/killinfo.c') 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; } } -- cgit v1.2.3