1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-08 07:24:33 +00:00

Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED

if library initialization has not been performed calling ares_library_init().
This commit is contained in:
Yang Tse
2009-05-26 18:00:14 +00:00
parent 84aa2f8a5d
commit cf3301f024
9 changed files with 46 additions and 9 deletions

View File

@ -52,7 +52,7 @@ conflict with any other thread that is already using these other libraries.
.PP
Win32/64 application DLLs shall not call \fIares_library_cleanup(3)\fP from
the DllMain function. Doing so will produce deadlocks and other problems.
.SH NOTES
.SH AVAILABILITY
This function was first introduced in c-ares version 1.6.1 along with the
definition of preprocessor symbol \fICARES_HAVE_ARES_LIBRARY_CLEANUP\fP as an
indication of the availability of this function.