Skip to content

Commit

Permalink
Merge pull request #5321 from sworleys/Zebra-Dplane-Thread-Cancel-Async
Browse files Browse the repository at this point in the history
zebra: dplane cancel update thread from correct pthread
  • Loading branch information
Mark Stapp authored Nov 13, 2019
2 parents 4e389d9 + 9344d3f commit b6af40b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zebra/zebra_dplane.c
Original file line number Diff line number Diff line change
Expand Up @@ -3752,7 +3752,9 @@ void zebra_dplane_shutdown(void)

zdplane_info.dg_run = false;

THREAD_OFF(zdplane_info.dg_t_update);
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);

Expand Down

0 comments on commit b6af40b

Please sign in to comment.