Lock thread_pool.wait_mutex before forking to avoid a race condition between rad_fork...
authorJames Rouzier <jrouzier@inverse.ca>
Tue, 28 Oct 2014 21:13:43 +0000 (17:13 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 28 Oct 2014 21:41:11 +0000 (17:41 -0400)
commit98d01172099162b1ff846fc5e677890122792af8
treee9f6025c7c3609566dc719c66d30b70f60146078
parent5fddf69a7116462ca07b7f3d6ba6884ca6dc1f46
Lock thread_pool.wait_mutex before forking to avoid a race condition between rad_fork, rad_waitpid and reap_children.

There is a race condition that can occur under high load where a child is reaped before being added to the waiters list.
src/main/threads.c