]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix race condition in i/o pthread shutdown
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 29 May 2018 08:17:08 +0000 (08:17 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 29 May 2018 19:06:46 +0000 (19:06 +0000)
commitc2ca5ee66d8f11672be87c079456158b9860e99d
treeacf3a06c5c54a0c6125711fe9238bde3ac0a8d00
parentc0ea1ae701ab984417bd0b8b7b03d1fe3ff1411b
zebra: fix race condition in i/o pthread shutdown

I mistakenly used an external mechanism to cause a pthread to shut
itself down instead of using the one built into frr_pthread.[ch]. This
created a race condition whereby a pthread could schedule work onto a
dead pthread and cause it to reanimate.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/zserv.c
zebra/zserv.h