Re: Testers wanted: reentrant resolver

From: Peter Jeremy <peterjeremy_at_optushome.com.au>
Date: Sat, 21 Feb 2004 13:10:45 +1100
On Fri, Feb 20, 2004 at 07:48:31PM -0500, Brian F. Feldman wrote:
>Other APIs have the option of failing.  __h_errno() does not have the option 
>of failing, so what do I do if pthread_key_create() fails?  Also, if 
>malloc() fails each time pthread_getspecific() returns NULL for the thread?

An off-the-top-of-my-head answer would be for __h_errno() to return
NETDB_INTERNAL with the relevant error in errno.  My gut feeling is
that if pthread_key_create() or malloc() fails, you have far more
serious issues with that thread/process than not knowing whether
a DNS lookup worked or not.

Peter
Received on Sat Feb 21 2004 - 03:12:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:44 UTC