-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netresolv: use thread-safe version of res functions
* Make getaddrinfo() and friends thread-safe by using the thread-safe versions of the res functions. * NetBSD offers two versions of the res functions: one in res_state.c from the netresolv directory, defined as weak symbols. It is the legacy version and only for single-threaded applications. A thread-safe version of the functions is in res_state.c inside their libpthread directory. An application that uses pthreads on NetBSD will then use the non-weak symbols from the pthreads library. * On Haiku, the thread-safe version is now always used. The res_state.c is taken from NetBSD's libpthread directory, and then only struct _nres from the other file is added to it. Please keep this in mind for future updates of netresolv, do not accidentally replace it with the single-threaded version. * This e.g. fixes WebPositive just hanging when opening websites (even in situations where no IPv6-related problems apply), waiting forever to resolve names.
- Loading branch information
1 parent
29e8040
commit db8517e
Showing
1 changed file
with
90 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters