summaryrefslogtreecommitdiffstats
path: root/ldpd/lde.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-07-21 14:26:43 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-07-21 14:30:50 +0200
commit2783a6921c8fd3917caa539df82e0d9f2a23eb0c (patch)
treed66407b5a832fe546455929c48511154d7a98edc /ldpd/lde.c
parentisisd: Convert thread_cancel to THREAD_OFF (diff)
downloadfrr-2783a6921c8fd3917caa539df82e0d9f2a23eb0c.tar.xz
frr-2783a6921c8fd3917caa539df82e0d9f2a23eb0c.zip
ldpd: Convert thread_cancel to THREAD_OFF
Just convert all uses of thread_cancel to THREAD_OFF Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ldpd/lde.c')
-rw-r--r--ldpd/lde.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ldpd/lde.c b/ldpd/lde.c
index 9d1daabbe..efc07b454 100644
--- a/ldpd/lde.c
+++ b/ldpd/lde.c
@@ -417,8 +417,8 @@ static void lde_dispatch_imsg(struct thread *thread)
imsg_event_add(iev);
else {
/* this pipe is dead, so remove the event handlers and exit */
- thread_cancel(&iev->ev_read);
- thread_cancel(&iev->ev_write);
+ THREAD_OFF(iev->ev_read);
+ THREAD_OFF(iev->ev_write);
lde_shutdown();
}
}
@@ -702,8 +702,8 @@ static void lde_dispatch_parent(struct thread *thread)
imsg_event_add(iev);
else {
/* this pipe is dead, so remove the event handlers and exit */
- thread_cancel(&iev->ev_read);
- thread_cancel(&iev->ev_write);
+ THREAD_OFF(iev->ev_read);
+ THREAD_OFF(iev->ev_write);
lde_shutdown();
}
}