Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use O_CLOEXEC if availableHEADmaster | Lennart Poettering | 2009-10-30 | 1 | -4/+18 |
| | |||||
* | minor optimization | Lennart Poettering | 2009-10-17 | 1 | -1/+1 |
| | |||||
* | Fixes for old MacOS X | Lennart Poettering | 2009-10-15 | 1 | -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 Poettering | 2009-10-15 | 1 | -9/+14 |
| | |||||
* | make things clean for -Wstrict-aliasing | Lennart Poettering | 2009-10-15 | 1 | -23/+41 |
| | |||||
* | Check if the linker has an option to refuse undefined references. | Diego E. 'Flameeyes' Pettenò | 2008-11-19 | 1 | -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 logic | Lennart Poettering | 2008-10-28 | 1 | -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 X | Mikael Hallendal | 2008-10-26 | 1 | -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 X | Mikael Hallendal | 2008-10-26 | 1 | -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 Poettering | 2008-10-26 | 1 | -8/+12 |
| | |||||
* | drop pthread cancelling code since it is problematic and completely redundant | Lennart Poettering | 2008-10-24 | 1 | -13/+0 |
| | |||||
* | restore h_errno in addition to errno | Lennart Poettering | 2008-09-29 | 1 | -7/+26 |
| | |||||
* | fix iteration through addrinfo when seriliazing (pointed out by Damien ↵ | Lennart Poettering | 2008-08-17 | 1 | -1/+1 |
| | | | | Thébault) | ||||
* | document that changing _freeanswer() to wildly would be considered ABI/API ↵ | Lennart Poettering | 2008-07-28 | 1 | -0/+5 |
| | | | | breakage | ||||
* | hide asyncns-test from git | Lennart Poettering | 2008-07-27 | 1 | -0/+1 |
| | |||||
* | save and restore errno where applicable | Lennart Poettering | 2008-07-27 | 1 | -9/+18 |
| | |||||
* | fix potential memory alignment bug | Lennart Poettering | 2008-07-27 | 1 | -11/+13 |
| | |||||
* | rearrange a few things | Lennart Poettering | 2008-07-27 | 1 | -18/+24 |
| | |||||
* | pass fds to worker thread in a malloc'ed array to avoid race | Lennart Poettering | 2008-07-27 | 1 | -4/+31 |
| | |||||
* | rework process logic | Lennart Poettering | 2008-07-27 | 1 | -4/+6 |
| | |||||
* | add a error checking everywhere | Lennart Poettering | 2008-07-27 | 1 | -15/+43 |
| | |||||
* | add a few assert()s | Lennart Poettering | 2008-07-27 | 1 | -0/+4 |
| | |||||
* | minor optimization | Lennart Poettering | 2008-07-27 | 1 | -1/+1 |
| | |||||
* | pass errno over the socket | Lennart Poettering | 2008-07-27 | 1 | -7/+27 |
| | |||||
* | add code to detect if a worker thread/process died | Lennart Poettering | 2008-07-27 | 1 | -5/+62 |
| | |||||
* | add complete error checking to example | Lennart Poettering | 2008-07-27 | 1 | -2/+13 |
| | |||||
* | disable SIGCHLD in example | Lennart Poettering | 2008-07-27 | 1 | -1/+5 |
| | |||||
* | update licenses/file headers | Lennart Poettering | 2008-07-27 | 4 | -31/+27 |
| | |||||
* | free srv data | Lennart Poettering | 2008-07-27 | 1 | -15/+17 |
| | |||||
* | rework thread shutdown logic | Lennart Poettering | 2008-07-27 | 1 | -2/+18 |
| | |||||
* | sanitize code a bit | Lennart Poettering | 2008-07-27 | 1 | -8/+6 |
| | |||||
* | remove debug line | Lennart Poettering | 2008-07-27 | 1 | -1/+0 |
| | |||||
* | fix iterative serialization of addrinfo data | Lennart Poettering | 2008-07-27 | 1 | -4/+3 |
| | |||||
* | make sure to terminate our dname string with a NUL byte | Lennart Poettering | 2008-07-27 | 1 | -8/+6 |
| | |||||
* | make sure we only send initialized memory over the socket, to make valgrind ↵ | Lennart Poettering | 2008-07-27 | 1 | -0/+4 |
| | | | | shut up | ||||
* | add a few comments | Lennart Poettering | 2008-07-27 | 1 | -0/+2 |
| | |||||
* | beautify enum usage a bit | Lennart Poettering | 2008-07-27 | 1 | -5/+3 |
| | |||||
* | make spawned background process more robust against strange contexts | Lennart Poettering | 2008-07-27 | 1 | -15/+189 |
| | |||||
* | update function docs | Lennart Poettering | 2008-07-27 | 1 | -15/+17 |
| | |||||
* | add new API asyncns_freeanswer() | Lennart Poettering | 2008-07-27 | 2 | -0/+9 |
| | |||||
* | fix a bit of indentation | Lennart Poettering | 2008-07-02 | 2 | -10/+6 |
| | |||||
* | Fix a double free that was spotted by Damien Thébault | Lennart Poettering | 2008-07-02 | 1 | -1/+0 |
| | |||||
* | whitespace fix | Lennart Poettering | 2008-07-02 | 2 | -70/+68 |
| | |||||
* | merge res_query() alignment portability patch | Lennart Poettering | 2008-03-25 | 1 | -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 Poettering | 2007-12-31 | 1 | -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 updates | Lennart Poettering | 2007-02-16 | 1 | -5/+5 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@28 cc0fb855-19ed-0310-866e-8c1d96e4abae | ||||
* | minor code cleanusp: | Lennart Poettering | 2007-02-16 | 2 | -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 Simons | Lennart Poettering | 2007-02-16 | 4 | -3/+227 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@23 cc0fb855-19ed-0310-866e-8c1d96e4abae | ||||
* | some minor updates | Lennart Poettering | 2005-08-06 | 2 | -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 Poettering | 2005-08-06 | 1 | -4/+8 |
| | | | | | | little, suggestion from Paul LeoNerd Evans git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@21 cc0fb855-19ed-0310-866e-8c1d96e4abae |