On 11/07/2012 05:00 PM, Cyrill Gorcunov wrote: > +static int fini_thread(void) > +{ > + struct tid_state_s *s = find_thread_state(sys_gettid()); :( > + if (!s) > + return -ENOENT; > + > + if (s->use_sig_blocked) > + return sys_sigprocmask(SIG_SETMASK, &s->sig_blocked, > + NULL, sizeof(k_rtsigset_t)); > + > + return 0; > +}