summaryrefslogtreecommitdiffstats
path: root/libasyncns
Commit message (Collapse)AuthorAgeFilesLines
* use O_CLOEXEC if availableHEADmasterLennart Poettering2009-10-301-4/+18
|
* minor optimizationLennart Poettering2009-10-171-1/+1
|
* Fixes for old MacOS XLennart Poettering2009-10-151-4/+3
| | | | | | | | Change a few things a suggested in to make things work out-of-the-box on old MacOS X. https://bugzilla.gnome.org/show_bug.cgi?id=580301 http://bugzilla-attachments.gnome.org/attachment.cgi?id=133452
* fix loop exit in close_allv()Lennart Poettering2009-10-151-9/+14
|
* make things clean for -Wstrict-aliasingLennart Poettering2009-10-151-23/+41
|
* Check if the linker has an option to refuse undefined references.Diego E. 'Flameeyes' Pettenò2008-11-191-1/+1
| | | | | This ensures that hte library will be built in a way that will not fail when --as-needed is used.
* Rework thread shutdown logicLennart Poettering2008-10-281-42/+35
| | | | | | | | | | | | | | | | | | | | As it turns there were two issues with the current logic how we shut down the worker threads: - We asked the threads to shutdown by closing the socket that is the communication from the context to the worker thread. This is racy because other threads might allocate the same fd immediately after it was closed and our worker thread ends up reading from that new fd under some circumstances. - To avoid blocking on shutdown we only detached the thread -- not waiting for its termination. This will cause an immediate segfault when the libasyncns gets unloaded from memory, e.g. because it was loaded by DSO. We have to acknowledge thati we need to make sure all name lookups are terminated properly on destruction and that there is simply no clean way to cancel name loops unless they are done out-of-process.
* Patch for asyncns.c on Mac OS XMikael Hallendal2008-10-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Hi, The asyncns-test.c file needed the same fix but 'make check' still fails with the following error: Undefined symbols: "_res_9_dn_expand", referenced from: _main in asyncns-test.o _main in asyncns-test.o _main in asyncns-test.o ld: symbol(s) not found I haven't looked into where they are supposed to be defined though (about to run off for dinner here). Attaching small patch for async-test.c (also moved the header check into your already existing AC_CHECK_HEADERS). Cheers, Micke Signed-off-by: Lennart Poettering <lennart@poettering.net>
* Patch for asyncns.c on Mac OS XMikael Hallendal2008-10-261-2/+7
| | | | | | | | | | | | | | | | | | | | | | | Hi Lennart, I have a copy of libasyncns in Loudmouth and just updated it to the version in 0.6 which required the following patch in order to build on Mac OS X. * arpa/nameser_compat.h seems to get included by nameser.h on Linux but not on Mac OS X. * Removed an unused variable that caused the compiler to complain when building with warnings * Both Mac OS X and Linux seems to define NSIG (on Linux to _NSIG and on Mac OS X to __DARWIN_NSIG. Thanks for your nice work on the lib and hope the patch may be of some use. Cheers, Micke Signed-off-by: Lennart Poettering <lennart@poettering.net>
* path MSG_NOSIGNAL to send()Lennart Poettering2008-10-261-8/+12
|
* drop pthread cancelling code since it is problematic and completely redundantLennart Poettering2008-10-241-13/+0
|
* restore h_errno in addition to errnoLennart Poettering2008-09-291-7/+26
|
* fix iteration through addrinfo when seriliazing (pointed out by Damien ↵Lennart Poettering2008-08-171-1/+1
| | | | Thébault)
* document that changing _freeanswer() to wildly would be considered ABI/API ↵Lennart Poettering2008-07-281-0/+5
| | | | breakage
* hide asyncns-test from gitLennart Poettering2008-07-271-0/+1
|
* save and restore errno where applicableLennart Poettering2008-07-271-9/+18
|
* fix potential memory alignment bugLennart Poettering2008-07-271-11/+13
|
* rearrange a few thingsLennart Poettering2008-07-271-18/+24
|
* pass fds to worker thread in a malloc'ed array to avoid raceLennart Poettering2008-07-271-4/+31
|
* rework process logicLennart Poettering2008-07-271-4/+6
|
* add a error checking everywhereLennart Poettering2008-07-271-15/+43
|
* add a few assert()sLennart Poettering2008-07-271-0/+4
|
* minor optimizationLennart Poettering2008-07-271-1/+1
|
* pass errno over the socketLennart Poettering2008-07-271-7/+27
|
* add code to detect if a worker thread/process diedLennart Poettering2008-07-271-5/+62
|
* add complete error checking to exampleLennart Poettering2008-07-271-2/+13
|
* disable SIGCHLD in exampleLennart Poettering2008-07-271-1/+5
|
* update licenses/file headersLennart Poettering2008-07-274-31/+27
|
* free srv dataLennart Poettering2008-07-271-15/+17
|
* rework thread shutdown logicLennart Poettering2008-07-271-2/+18
|
* sanitize code a bitLennart Poettering2008-07-271-8/+6
|
* remove debug lineLennart Poettering2008-07-271-1/+0
|
* fix iterative serialization of addrinfo dataLennart Poettering2008-07-271-4/+3
|
* make sure to terminate our dname string with a NUL byteLennart Poettering2008-07-271-8/+6
|
* make sure we only send initialized memory over the socket, to make valgrind ↵Lennart Poettering2008-07-271-0/+4
| | | | shut up
* add a few commentsLennart Poettering2008-07-271-0/+2
|
* beautify enum usage a bitLennart Poettering2008-07-271-5/+3
|
* make spawned background process more robust against strange contextsLennart Poettering2008-07-271-15/+189
|
* update function docsLennart Poettering2008-07-271-15/+17
|
* add new API asyncns_freeanswer()Lennart Poettering2008-07-272-0/+9
|
* fix a bit of indentationLennart Poettering2008-07-022-10/+6
|
* Fix a double free that was spotted by Damien ThébaultLennart Poettering2008-07-021-1/+0
|
* whitespace fixLennart Poettering2008-07-022-70/+68
|
* merge res_query() alignment portability patchLennart Poettering2008-03-251-37/+38
| | | | git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@40 cc0fb855-19ed-0310-866e-8c1d96e4abae
* use check instead of noinst as prefix for our test tool to make sure it ↵Lennart Poettering2007-12-311-1/+1
| | | | | | isn't built unless necessary git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@39 cc0fb855-19ed-0310-866e-8c1d96e4abae
* assorted build system updatesLennart Poettering2007-02-161-5/+5
| | | | git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@28 cc0fb855-19ed-0310-866e-8c1d96e4abae
* minor code cleanusp:Lennart Poettering2007-02-162-80/+83
| | | | | | | | | * reindent * add missing config.h inclusion to asyncns-test.c * add few missing consts in casting git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@27 cc0fb855-19ed-0310-866e-8c1d96e4abae
* Merge res_query patch from Sjoerd SimonsLennart Poettering2007-02-164-3/+227
| | | | git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@23 cc0fb855-19ed-0310-866e-8c1d96e4abae
* some minor updatesLennart Poettering2005-08-062-6/+2
| | | | git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@22 cc0fb855-19ed-0310-866e-8c1d96e4abae
* * Elaborate documentation about asyncns_getnext() and asyncns_wait() a ↵Lennart Poettering2005-08-061-4/+8
| | | | | | little, suggestion from Paul LeoNerd Evans git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@21 cc0fb855-19ed-0310-866e-8c1d96e4abae