debugging while running multi-threaded

Alan DeKok aland at ox.org
Fri Oct 14 22:43:57 CEST 2005


Joe Maimon <jmaimon at ttec.com> wrote:
> a mutex would probably be a good idea in vradlog for debug mode.
> I am testing something like that now.

  Mutexes are expensive.  Instead, write the data to a local buffer
via snprintf, and call write().

  It's still not perfect, but the odds of problems occuring are less.

  Alan DeKok.






More information about the Freeradius-Devel mailing list