On Fri, Sep 12, 2003 at 03:12:58PM -0600, Guy Fraser wrote:
> I seem to remeber people saying that gethostbyname_r is not thread
> safe, but I have not seen how to fix the problem.

gethostbyname_r is the threadsafe version, which is not present in
*BSD (some of them...).

> Just straight answers, no feeble excuses for not answering or flames.

There is always the possibility to add a mutex locking fallback
version to libradius... perhaps I'll write one this weekend.

The lock is really short, so it should hurt not too much. On my
servers I got up to five faults per hour (this means: detail got
written to the wrong path). But this depends on how loaded your
servers get...

Any objections to such a thread-safe helper for systems without
reentrant calls from the core team?

Oliver.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to