mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 17:01:49 +00:00
zebra: fix race during shutdown
During shutdown, the main pthread stops the dplane pthread before exiting. Don't try to clean up any events scheduled to the dplane pthread at that point - just let the thread exit and clean up. Signed-off-by: Mark Stapp <mjs@labn.net>
This commit is contained in:
parent
117bc6ba2b
commit
38a2e2cb26
@ -6853,10 +6853,6 @@ void zebra_dplane_shutdown(void)
|
||||
|
||||
zdplane_info.dg_run = false;
|
||||
|
||||
if (zdplane_info.dg_t_update)
|
||||
event_cancel_async(zdplane_info.dg_t_update->master,
|
||||
&zdplane_info.dg_t_update, NULL);
|
||||
|
||||
frr_pthread_stop(zdplane_info.dg_pthread, NULL);
|
||||
|
||||
/* Destroy pthread */
|
||||
|
Loading…
Reference in New Issue
Block a user