Re: Why is getaddrinfo breaking POSIX?

2009-12-11 Thread Brad Davis
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

Re: Why is getaddrinfo breaking POSIX?

2009-12-11 Thread Otto Moerbeek
On Fri, Dec 11, 2009 at 12:20:30PM -0700, Brad Davis wrote: 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

Re: Why is getaddrinfo breaking POSIX?

2009-12-11 Thread Theo de Raadt
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

Re: Why is getaddrinfo breaking POSIX?

2009-12-11 Thread Bob Beck
2009/12/11 Theo de Raadt dera...@cvs.openbsd.org: 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

Re: Why is getaddrinfo breaking POSIX?

2009-12-09 Thread Jonathan Schleifer
Am 08.12.2009 um 15:52 schrieb Bret Lambert: The existing resolver code is compleat balls, as oga@ would spell it. Frankly, it needs to be dragged behind the chemical sheds and quietly suffocated. Wouldn't it be possible to at least put a lock around it, so that at least it does not

Re: Why is getaddrinfo breaking POSIX?

2009-12-09 Thread Jonathan Schleifer
Am 08.12.2009 um 15:41 schrieb Otto Moerbeek: Nobody did the work yet. If it's very important to you, consider spending effort making it thread safe. I believe netbsd and freebsd have thread safe implementations. But actullay verifying that is pretty hard. Yes, the NetBSD implementation is

Re: Why is getaddrinfo breaking POSIX?

2009-12-09 Thread Bret Lambert
On Wed, Dec 9, 2009 at 10:55 AM, Jonathan Schleifer js-openbsd-m...@webkeks.org wrote: Am 08.12.2009 um 15:52 schrieb Bret Lambert: The existing resolver code is compleat balls, as oga@ would spell it. Frankly, it needs to be dragged behind the chemical sheds and quietly suffocated.

Re: Why is getaddrinfo breaking POSIX?

2009-12-09 Thread Bret Lambert
On Wed, Dec 9, 2009 at 10:56 AM, Jonathan Schleifer js-openbsd-m...@webkeks.org wrote: Am 08.12.2009 um 15:41 schrieb Otto Moerbeek: Nobody did the work yet. If it's very important to you, consider spending effort making it thread safe. I believe netbsd and freebsd have thread safe

Re: Why is getaddrinfo breaking POSIX?

2009-12-09 Thread Otto Moerbeek
On Wed, Dec 09, 2009 at 10:56:58AM +0100, Jonathan Schleifer wrote: Am 08.12.2009 um 15:41 schrieb Otto Moerbeek: Nobody did the work yet. If it's very important to you, consider spending effort making it thread safe. I believe netbsd and freebsd have thread safe implementations. But

Why is getaddrinfo breaking POSIX?

2009-12-08 Thread Jonathan Schleifer
Just wondering: Why is getaddrinfo breaking POSIX by not being thread- safe and what is the thread-safe alternative to it? (Please don't tell me to use locks, as that would kill the possibility to lookup multiple hosts at once). I consider it very strange that an OS still has a thread

Re: Why is getaddrinfo breaking POSIX?

2009-12-08 Thread Otto Moerbeek
On Tue, Dec 08, 2009 at 02:44:27PM +0100, Jonathan Schleifer wrote: Just wondering: Why is getaddrinfo breaking POSIX by not being thread-safe and what is the thread-safe alternative to it? (Please don't tell me to use locks, as that would kill the possibility to lookup multiple hosts at once

Re: Why is getaddrinfo breaking POSIX?

2009-12-08 Thread Bret Lambert
On Tue, Dec 8, 2009 at 3:41 PM, Otto Moerbeek o...@drijf.net wrote: On Tue, Dec 08, 2009 at 02:44:27PM +0100, Jonathan Schleifer wrote: Just wondering: Why is getaddrinfo breaking POSIX by not being thread-safe and what is the thread-safe alternative to it? (Please don't tell me to use locks