On Sat, 5 Apr 2003, Dan Weeks wrote:
Hello,
Hi.
I was using dillo from the OpenBSD ports before, but at the urging of a friend I've tried out the CVS version. Since dillo has threaded DNS queries by default OpenBSD would load the first page and then generally fail to load anything after that (images from other sites on that page, new pages, etc.). The problem lies in the fact that the gethost* calls on OpenBSD-3.3 and -current are not thread safe. Even though threads support has been greatly improved, threaded dns queries are still out (unless you do locking with mutexs, but you already have another framework for dealing with this issue). Attached is a small patch that makes dillo-cvs work on OpenBSD-3.3 and -current.
Is this a problem with _all_ OpenBSD? If so, I'd prefer a `./configure --no-dns-threads` option. Because we aim to be POSIX compliant. The other way around is to develop sspecific code for each OS/Platform, but that doesn't promote standards adoption and obscures the code. Cheers Jorge.-