Create threads as joinable, not detached.
authorIliya Peregoudov <iliyap@rambler.ru>
Thu, 25 Oct 2012 06:18:58 +0000 (10:18 +0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 Oct 2012 08:34:23 +0000 (10:34 +0200)
commitfe2066fdf9d73c8dc53cc383b0a5dc835d9bb480
tree98f1f1b4c8c598f3fcecc7c0b6c1946fa343506e
parentea828e5d1e4734efd8ca0070b1b5c6e4fee1bf79
Create threads as joinable, not detached.
Stop and join all threads before detaching modules.

This prevents a crash on exit where the modules are free'd before
the threads stop using them.
src/include/radiusd.h
src/main/event.c
src/main/threads.c