mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:14:35 +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)) {
|
||||
if (listener->bgp)
|
||||
continue;
|
||||
thread_cancel(listener->thread);
|
||||
THREAD_OFF(listener->thread);
|
||||
close(listener->fd);
|
||||
listnode_delete(bm->listen_sockets, listener);
|
||||
XFREE(MTYPE_BGP_LISTENER, listener->name);
|
||||
|
Loading…
Reference in New Issue
Block a user