| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Thébault)
|
| |
|
|
| |
breakage
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
shut up
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@40 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
|
|
| |
isn't built unless necessary
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@39 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@28 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@23 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@22 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
|
|
| |
little, suggestion from Paul LeoNerd Evans
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@21 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@20 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@19 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
|
|
|
| |
* doc update
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@18 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@14 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@13 cc0fb855-19ed-0310-866e-8c1d96e4abae
|
| |
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libasyncns/trunk@12 cc0fb855-19ed-0310-866e-8c1d96e4abae
|