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/psignalunblockthread.c | |
parent | 54c3fbd63ec79d0986ecfacb9a37eb5a6fe3d264 (diff) |
posix: Store unblocked signals
Store the unblock signals to exploit the zero-initialization of the
thread control block.
Diffstat (limited to 'cpukit/posix/src/psignalunblockthread.c')
-rw-r--r-- | cpukit/posix/src/psignalunblockthread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/psignalunblockthread.c b/cpukit/posix/src/psignalunblockthread.c index ff5a8fa041..640c758bf3 100644 --- a/cpukit/posix/src/psignalunblockthread.c +++ b/cpukit/posix/src/psignalunblockthread.c @@ -69,7 +69,7 @@ bool _POSIX_signals_Unblock_thread( if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { - if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { + if ( (the_thread->Wait.option & mask) || (api->signals_unblocked & mask) ) { the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; @@ -96,7 +96,7 @@ bool _POSIX_signals_Unblock_thread( /* * Thread is not waiting due to a sigwait. */ - if ( ~api->signals_blocked & mask ) { + if ( api->signals_unblocked & mask ) { /* * The thread is interested in this signal. We are going |