]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: threads: fix thread_release() at the end of the rendez-vous point
authorWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2018 14:11:56 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2018 15:03:16 +0000 (17:03 +0200)
commita9c0252b2e8ff7bb728b84d977ac6e9581ea12f8
tree8173c034e8e025d05fa18764084e0e53db4e2896
parente18db9e984e69e3802868bac10ce0703ce31e7d0
BUG/MEDIUM: threads: fix thread_release() at the end of the rendez-vous point

There is a bug in this function used to release other threads. It leaves
the current thread marked as harmless. If after this another thread does
a thread_isolate(), but before the first one reaches poll(), the second
thread will believe it's alone while it's not.

This must be backported to 1.8 since the rendez-vous point was merged
into 1.8.14.
src/hathreads.c