]> git.kaiwu.me - haproxy.git/commit
[MEDIUM] ensure we don't recursively call pool_gc2()
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Apr 2009 00:17:45 +0000 (02:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 10 May 2009 16:19:22 +0000 (18:19 +0200)
commitd8b199849f1813a8420f1310549921814318a1a7
tree95564af7b3aa229a7881dc69e1ee88183a9b2b0d
parentb66142eb85f5039412b28e34706cdfc660f52945
[MEDIUM] ensure we don't recursively call pool_gc2()

A race condition exists in the hot reconfiguration code. It is
theorically possible that the second signal is sent during a free()
in the first list, which can cause crashes or freezes (the later
have been observed). Just set up a counter to ensure we do not
recurse.
(cherry picked from commit b7f9d126e269f3b5b7dc05e39fcf207ba86a330c)
(cherry picked from commit 5a01de1c74b8c1c0c2a0e62e9fb6b432e24c79f9)
src/memory.c