[systemd-devel] [RFC] Initial libsystemd-asyncns commit

Kay Sievers kay at vrfy.org
Thu Jan 2 14:15:31 PST 2014


On Thu, Jan 2, 2014 at 10:53 PM, Tom Gundersen <teg at jklm.no> wrote:
> On Wed, Dec 11, 2013 at 2:41 AM, Lennart Poettering <lennart at poettering.net> wrote:

>> To follow the naming scheme of the other libs we should probably call
>> this "sd-asyncs.c", and the header file should be in src/systemd/
>> together with the other public APIs.
>
> Hm, the fact that this is async is sort of a detail, is it not? I
> mean, all our libs are async... How about sd-dns? It is slightly
> wrong, but sd-ns could mean anything...

libsystemd-dns sounds good to me.

>> Right now I am more leaning towards the thread option. But maybe that
>> changes tomorrow again. Other opinions? Kay?
>>
>> glib is embedding a copy of libasyncns currently, they opted for the
>> thread solution. Maybe we should follow suit.
>
> Doesn't seem to be any strong arguments either way... So shall we just
> go with pthreads, if that's what's used elsewhere...?

Yeah, a thread to call into the nss stuff sound like the better option
than a worker process.

Kay


More information about the systemd-devel mailing list