Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | 2 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | add missing check for arpa/nameser_compat.h on MacOSX | Lennart Poettering | 2008-10-26 | 1 | -0/+2 |
| | |||||
* | 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 |
| | |||||
* | fix download link | Lennart Poettering | 2008-10-25 | 1 | -1/+1 |
| | |||||
* | prepare 0.6v0.6 | Lennart Poettering | 2008-10-24 | 2 | -2/+8 |
| | |||||
* | 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 |
| | |||||
* | prepare v0.5v0.5 | Lennart Poettering | 2008-08-18 | 2 | -3/+7 |
| | |||||
* | fix iteration through addrinfo when seriliazing (pointed out by Damien ↵ | Lennart Poettering | 2008-08-17 | 2 | -2/+2 |
| | | | | Thébault) | ||||
* | add link to Damien Thébault's libasyncns-python | Lennart Poettering | 2008-07-30 | 1 | -0/+2 |
| | |||||
* | hide more files from git | Lennart Poettering | 2008-07-28 | 2 | -0/+2 |
| | |||||
* | document that changing _freeanswer() to wildly would be considered ABI/API ↵ | Lennart Poettering | 2008-07-28 | 1 | -0/+5 |
| | | | | breakage | ||||
* | update readmev0.4 | Lennart Poettering | 2008-07-27 | 1 | -7/+10 |
| | |||||
* | hide asyncns-test from git | Lennart Poettering | 2008-07-27 | 1 | -0/+1 |
| | |||||
* | bump revision | Lennart Poettering | 2008-07-27 | 1 | -1/+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 |
| | |||||
* | rename autogen.sh to bootstrap.sh | Lennart Poettering | 2008-07-27 | 1 | -0/+0 |
| | |||||
* | remove bootstrap.sh | Lennart Poettering | 2008-07-27 | 1 | -32/+0 |
| | |||||
* | add gitignore files | Lennart Poettering | 2008-07-27 | 3 | -0/+28 |
| | |||||
* | bump soname | Lennart Poettering | 2008-07-27 | 1 | -1/+1 |
| | |||||
* | a few minor updates to configure.ac | Lennart Poettering | 2008-07-27 | 1 | -10/+9 |
| | |||||
* | update licenses/file headers | Lennart Poettering | 2008-07-27 | 12 | -114/+102 |
| | |||||
* | 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 |
| | |||||
* | update autogen script a bit | Lennart Poettering | 2008-07-27 | 1 | -11/+13 |
| | |||||
* | 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 |
| |