From e72680bb467e032230cd2bddeb82c0e0c2628c2c Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Sun, 26 Sep 2021 23:24:37 +0800 Subject: [PATCH] sched/signal: Correct kill with cancellation Signed-off-by: Huang Qi --- sched/signal/sig_default.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sched/signal/sig_default.c b/sched/signal/sig_default.c index 5f4ad913379..83b0781470d 100644 --- a/sched/signal/sig_default.c +++ b/sched/signal/sig_default.c @@ -194,13 +194,6 @@ static void nxsig_abnormal_termination(int signo) { 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 * child pthread. */