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/pthread.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/pthread.c')
-rw-r--r-- | cpukit/posix/src/pthread.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index b8721f9f3c..ee7da11231 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -222,9 +222,7 @@ static bool _POSIX_Threads_Create_extension( #endif ) { executing_api = _Thread_Get_executing()->API_Extensions[ THREAD_API_POSIX ]; - api->signals_blocked = executing_api->signals_blocked; - } else { - api->signals_blocked = SIGNAL_ALL_MASK; + api->signals_unblocked = executing_api->signals_unblocked; } _Thread_queue_Initialize( &api->Join_List, THREAD_QUEUE_DISCIPLINE_FIFO ); |