sched/signal: Correct kill with cancellation
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
a264fd9541
commit
e72680bb46
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user