]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix race during shutdown
authorMark Stapp <mjs@labn.net>
Tue, 11 Apr 2023 19:51:32 +0000 (15:51 -0400)
committerMark Stapp <mjs@labn.net>
Tue, 11 Apr 2023 19:51:32 +0000 (15:51 -0400)
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. This is the 8.4 version.

Signed-off-by: Mark Stapp <mjs@labn.net>
zebra/zebra_dplane.c

index 612b920e738b286fb0ee48ec5160f433ff92b745..64169d1a3b8f759ca59d5a0905dcee14dcd1f617 100644 (file)
@@ -6500,10 +6500,6 @@ void zebra_dplane_shutdown(void)
 
        zdplane_info.dg_run = false;
 
-       if (zdplane_info.dg_t_update)
-               thread_cancel_async(zdplane_info.dg_t_update->master,
-                                   &zdplane_info.dg_t_update, NULL);
-
        frr_pthread_stop(zdplane_info.dg_pthread, NULL);
 
        /* Destroy pthread */