Commit b2876e0f authored by Hongzhan Chen's avatar Hongzhan Chen Committed by Jan Kiszka
Browse files

cobalt/thread: initialize sigarray in __xnthread_init



Add missing sigarray initialization to avoid missing signal in
__xnthread_signal.
Signed-off-by: default avatarHongzhan Chen <hongzhan.chen@intel.com>
[Jan: simplify size calculation]
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 3d51a29c
......@@ -287,6 +287,7 @@ int __xnthread_init(struct xnthread *thread,
thread->cookie = NULL;
init_completion(&thread->exited);
memset(xnthread_archtcb(thread), 0, sizeof(struct xnarchtcb));
memset(thread->sigarray, 0, sizeof(thread->sigarray));
gravity = flags & XNUSER ? XNTIMER_UGRAVITY : XNTIMER_KGRAVITY;
xntimer_init(&thread->rtimer, &nkclock, timeout_handler,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment