sched/signal: Correct kill with cancellation

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2021-09-26 23:24:37 +08:00 committed by Xiang Xiao
parent a264fd9541
commit e72680bb46

View File

@ -194,13 +194,6 @@ static void nxsig_abnormal_termination(int signo)
{ {
FAR struct tcb_s *rtcb = (FAR struct tcb_s *)this_task(); FAR struct tcb_s *rtcb = (FAR struct tcb_s *)this_task();
/* Notify the target if the non-cancelable or deferred cancellation set */
if (nxnotify_cancellation(rtcb))
{
return;
}
/* Careful: In the multi-threaded task, the signal may be handled on a /* Careful: In the multi-threaded task, the signal may be handled on a
* child pthread. * child pthread.
*/ */