mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 01:57:26 +00:00
Merge pull request #6481 from donaldsharp/bgp_thread_cancel
bgpd: Use THREAD_CANCEL instead of thread_cancel
This commit is contained in:
commit
276b698a43
@ -909,7 +909,7 @@ void bgp_close(void)
|
|||||||
for (ALL_LIST_ELEMENTS(bm->listen_sockets, node, next, listener)) {
|
for (ALL_LIST_ELEMENTS(bm->listen_sockets, node, next, listener)) {
|
||||||
if (listener->bgp)
|
if (listener->bgp)
|
||||||
continue;
|
continue;
|
||||||
thread_cancel(listener->thread);
|
THREAD_OFF(listener->thread);
|
||||||
close(listener->fd);
|
close(listener->fd);
|
||||||
listnode_delete(bm->listen_sockets, listener);
|
listnode_delete(bm->listen_sockets, listener);
|
||||||
XFREE(MTYPE_BGP_LISTENER, listener->name);
|
XFREE(MTYPE_BGP_LISTENER, listener->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user