I did a quick perusal of the source (and compared it against the NetBSD tree) and it looks like the easiest way to
make getaddrinfo() thread safe is to TURN OFF Yellow Pages (pee).

NetBSD changes the only "variable" globals to local (in they yp code by removing the caching optimization) and puts
a mutex in the yp code to protect its global variables.

I would do the work but I can't test it (I have refused to use YP for the last 17.5 years). If someone volunteers to
test, I'll rework the code.

Brad Davis

Reply via email to